MaCgyver Posted February 27, 2006 Share Posted February 27, 2006 (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 February 27, 2006 by MaCgyver Link to comment Share on other sites More sharing options...
Nuffilein805 Posted February 27, 2006 Share Posted February 27, 2006 could be because of your runwait the script will wait until the action is done - if it can't be done it will wait forever try run instead (maybe use a little sleep) don't return the value of your func you don't need it my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
ChrisL Posted February 27, 2006 Share Posted February 27, 2006 When you click on the icon it pauses the script! [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
MaCgyver Posted February 27, 2006 Author Share Posted February 27, 2006 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now