Sign in to follow this  
Followers 0
MaCgyver

What would a script just pause?

4 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



It was the runwait. I copied that from a func. I didn't realize I could use it without "wait" in the command line.

Thanks, its working perfect now. I am an :o

Share this post


Link to post
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
Sign in to follow this  
Followers 0