Jump to content
Sign in to follow this  
Grumpy

Restart computer and continue

Recommended Posts

Grumpy

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

Share this post


Link to post
Share on other sites
james3mg

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

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?

"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

Share this post


Link to post
Share on other sites
Grumpy

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.

Share this post


Link to post
Share on other sites
Jos

I posted an example in this link a while ago: http://www.autoitscript.com/forum/index.ph...st&p=187208

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.