-
Posts
7,103 -
Joined
-
Days Won
88
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by TheDcoder
-
AutoIt bot needs display
TheDcoder replied to pranaynanda's topic in AutoIt General Help and Support
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.) -
AutoIt bot needs display
TheDcoder replied to pranaynanda's topic in AutoIt General Help and Support
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? -
Not sure if its possible ...
-
Are you sure if that works in ISN?
- 995 replies
-
- isn autoit studio
- isn
-
(and 3 more)
Tagged with:
-
Constants: Do they have any advantage over variables?
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
lol -
How can i run scripts from my own IDE
TheDcoder replied to kcvinu's topic in Developer General Discussion
Oh, yeah, true. I did not look at the script because is was VB.Net :-/ -
How can i run scripts from my own IDE
TheDcoder replied to kcvinu's topic in Developer General Discussion
@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 -
How can i run scripts from my own IDE
TheDcoder replied to kcvinu's topic in Developer General Discussion
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) -
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!
-
Constants: Do they have any advantage over variables?
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
Its just 0.00001th of a millisecond lol -
Constants: Do they have any advantage over variables?
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
oh, ok, silly me -
Constants: Do they have any advantage over variables?
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
Its the same case when we declare a variable too I think. -
Constants: Do they have any advantage over variables?
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
@guinness Do you have access to AutoIt's code? If yes, how does AutoIt handle constants? -
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
-
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 .
-
Ok, I will write some starter code for you . Give me some time and I will post it here .
-
@Trong Glad you like it . I neglected that UDF a little over the months... Will get back it when I get some time
-
Try running the example, its simple enough I think . TD
-
@eagle4life69 Feel free to ask any questions regarding TCP... Its a little tricky to get into!
-
@youtuber Not a bug, Encoding problem.
-
There is a function which does this in my Process UDF (link in my signature below), Run the example.
-
I already did something like this in my Process UDF's Debug function .