Jump to content

What would a script just pause?


MaCgyver
 Share

Recommended Posts

I am testing a script and it pauses sometimes and never executes the rest of the script. When I check the autoit ICON by the system tray it shows the script is paused. I do have a few delays in the script, but it pauses before the SLEEP lines are reached.

It doesn't happen all the time but it need to be consistent.

Func _RunDOS($sCommand)

Return RunWait(@ComSpec & " /C " & $sCommand, "", @SW_HIDE)

EndFunc ;==>

;MouseClick ('left',429,522)

_RunDOS ('\\app1\Apps\ResQNET_BKUNA\ATTAdmin.html')

Sleep(5000)

MouseClick('left', 419 , 479)

Sleep(5000)

Send('LCMN{Enter}')

Sleep(2000)

Send('xxxx{Enter}xxxxxxx{Enter}')

Sleep(2000)

MouseClick('left', 81, 316)

Sleep(2000)

;MouseClick('left', 103, 593)

MouseMove(103,593)

MouseClick('left', 1004, 10)

MouseClick('left', 493, 348)

MouseClick('left', 1004, 10)

WEIRD. Right now its working consitently on the 2nd try. I leave the first script in pause mode and run it a second time and it works.

Edited by MaCgyver
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...