Jump to content

TheDcoder

Active Members
  • Posts

    7,103
  • Joined

  • Days Won

    88

Everything posted by TheDcoder

  1. Oh , I am afraid that, that kind of tests don't have an alternative... I was hoping for something which can be interacted programmatically (like commandline execution, COM API etc.)
  2. It is tricky to automate things without a display... There might be alternatives to K&M (Keyboard and Mouse) automation to perform your "performance test" . Can you please elaborate on what kind of performance tests?
  3. Not sure if its possible ...
  4. Are you sure if that works in ISN?
  5. Oh, yeah, true. I did not look at the script because is was VB.Net :-/
  6. @kcvinu I think I found an alternative: Use the Process class's WaitForExit method and read the ExitCode property of the object. The reference page I used is: https://msdn.microsoft.com/en-us/library/system.diagnostics.process(v=vs.110).aspx P.S @JLogan3o13 was faster than me
  7. It should be easy enough, I don't know VB.Net so I wrote a AutoIt Script: Global Const $32BIT_PROGRAMFILES = @CPUArch = 'X64' ? 'C:\Program Files (x86)' : 'C:\Program Files' Global Const $AUTOIT = $32BIT_PROGRAMFILES & '\AutoIt3\AutoIt3.exe' ; You can change this to the 64 bit interpreter's path if you want Global Const $SCRIPT = "" ; Location of the .au3 file you want to run Global $iExitCode = RunWait($AUTOIT & ' "' & $SCRIPT & '"') MsgBox(0, "AutoIt Script's Exit Code", "The AutoIt Script exited with exit code " & $iExitCode) You can translate it into VB.Net and try it. (Make sure you try it out first though)
  8. I have talked with freenode's staff and they require the creator of AutoIt (@Jon) to send them an email telling them that its OK for them to let me operate the official channel. I will send a PM to Jon with more details on who he needs email and some confidential stuff... Thanks you guys for helping me bring back the IRC AutoIt Community! Love you all!
  9. Wow! Thank you very much Jon! You are the best!!
  10. Its the same case when we declare a variable too I think.
  11. @guinness Do you have access to AutoIt's code? If yes, how does AutoIt handle constants?
  12. Now that I know that you are trying to automate the Telnet protocol (note: Telnet protocol is not the same as telnet.exe which you use in command prompt!), I have looked into the Specifications (or Documentation) of it, RFC 854. After reading the basics, its a fairly complicated protocol to automate! (even for me). It would require a basic framework made in AutoIt to automate it... That would take some time to make... unfortunately I don't have that free time . Your best option now is to follow @youtuber's example as it directly interacts with Command Prompt . Sorry for letting you down here. Good luck, TD
  13. Here is a basic TCP usage example: Global Const $SERVER = "" ; IP or Address of the server Global Const $SERVER_IP = TCPNameToIP($SERVER) Global Const $PORT = 0 ; Port of the server to connect Global $iSocket = TCPConnect($SERVER_IP, $PORT) ; Do not change this TCPSend($iSocket, "") ; Use TCPSend to send commands Global $vData ; Recived Data is stored in this variable While 1 ; This is a infinite loop which recives data from the server $vData = TCPRecv($iSocket, 100) ; Recive the data (only the first 100 bytes will be recived!) If Not $vData = "" Then ConsoleWrite($vData) ; Write the data to the Console Output Sleep(10) ; Rest the CPU a little WEnd The code is very basic and might require some modifications to work with your situation... I only made the basic because I don't know what protocol you are trying to automate . Use the above code as a base , Let me know if it works .
  14. Ok, I will write some starter code for you . Give me some time and I will post it here .
  15. @Trong Glad you like it . I neglected that UDF a little over the months... Will get back it when I get some time
  16. Try running the example, its simple enough I think . TD
  17. @eagle4life69 Feel free to ask any questions regarding TCP... Its a little tricky to get into!
  18. @youtuber Not a bug, Encoding problem.
  19. There is a function which does this in my Process UDF (link in my signature below), Run the example.
  20. I already did something like this in my Process UDF's Debug function .
×
×
  • Create New...