narayanjr Posted August 23, 2007 Posted August 23, 2007 make two scripts first one is the main program second one just watches the first one and if it closes it starts it up again
narayanjr Posted August 23, 2007 Posted August 23, 2007 well if you want it to restart as soon as it end then MsgBox(0,"first","1") ShellExecute("runtest.exe") Exit if you just make it run the script again right before you tell it to exit the first one will exit while the second one loads, if you dont want it to restart right away you could make it a service i think and have it run at certain times but i dont know much about making it a service
Armand Posted August 23, 2007 Posted August 23, 2007 http://www.autoitscript.com/forum/index.ph...8&hl=armandOUTA HERE ! [u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!
sandman Posted August 23, 2007 Posted August 23, 2007 Yeah, it shouldn't be that complicated... as JdeB said in the post Armand linked to:Run(@ScriptFullPath) Exit [center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]
paulsoliver Posted August 24, 2007 Posted August 24, 2007 Is it possible to exit and restart the script?Is the script ending before you want it to? If so make sure : GUIDelete is the LAST thing in your script.WEndGUISetState ()GUIDelete()
Tiger Posted August 24, 2007 Posted August 24, 2007 this works: ShellExecute(FileGetShortName(@AutoItExe), @ScriptFullPath) Exit My UDFs:- _RegEnumKey
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