Grumpy Posted August 25, 2008 Share Posted August 25, 2008 Can some one help me with a code please. I need autoit to restart my computer and continue with autoit program, where it left of before it restarted. In other words. code restart code Link to comment Share on other sites More sharing options...
james3mg Posted August 25, 2008 Share Posted August 25, 2008 Can some one help me with a code please.I need autoit to restart my computer and continue with autoit program, where it left of before it restarted.In other words.coderestartcodeBuild in a commandline argument checking routine so that if your script is called with a certain flag (maybe "rebooted") it does the second part of what you want. Then have the first part write the path and argument to HKCU\Software\Microsoft\Windows\RunOnce. I assume you know how to restart the computer? "There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110 Link to comment Share on other sites More sharing options...
Grumpy Posted August 26, 2008 Author Share Posted August 26, 2008 Build in a commandline argument checking routine so that if your script is called with a certain flag (maybe "rebooted") it does the second part of what you want. Then have the first part write the path and argument to HKCU\Software\Microsoft\Windows\RunOnce. I assume you know how to restart the computer?Iknow how to restart the computer but i dont know how to restart the program where it left off. Can give me some sample code please. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 26, 2008 Developers Share Posted August 26, 2008 I posted an example in this link a while ago: http://www.autoitscript.com/forum/index.ph...st&p=187208Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Grumpy Posted August 26, 2008 Author Share Posted August 26, 2008 I posted an example in this link a while ago: http://www.autoitscript.com/forum/index.ph...st&p=187208JosThankyou Jos you are a star it works great. 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