Hello,
I am new and exploring, Auto it, i was by some examples able to write a simple program, but i need some little understanding
Here is script
Send("#r")
WinWaitActive("Run")
Send("cmd.exe{Enter}")
WinWaitActive("")
Local $begin=TimerInit()
Send("ping 4.2.2.2 -t{Enter}")
sleep(3000)
Local $dif=TimerDiff($begin)
Send("^C")
I originally did not have WinWaitActive("")and i would get ng 4.2.2.2 -t and of course disaster, but i wanted to know why, this occured, i run a Vista Machine, is it due to the fact that my operating system is slow.
One more question, when i do not close this window, and i run the script again, the sleep function seems to be passive, any reason.
Thanks
I am new and exploring, Auto it, i was by some examples able to write a simple program, but i need some little understanding
Here is script
Send("#r")
WinWaitActive("Run")
Send("cmd.exe{Enter}")
WinWaitActive("")
Local $begin=TimerInit()
Send("ping 4.2.2.2 -t{Enter}")
sleep(3000)
Local $dif=TimerDiff($begin)
Send("^C")
I originally did not have WinWaitActive("")and i would get ng 4.2.2.2 -t and of course disaster, but i wanted to know why, this occured, i run a Vista Machine, is it due to the fact that my operating system is slow.
One more question, when i do not close this window, and i run the script again, the sleep function seems to be passive, any reason.
Thanks