Jump to content
cres

Resume the system after suspend/hibernation

Recommended Posts

cres

Hi,

 

I am currently using this script found here to suspend/hibernate my computer and then resume the system after a given interval. The script works perfectly on my test computer, the problem was when I tested it on another computer, it did not resume after the given interval, there were no errors given whatsoever. I don't remember using any special configurations for it to work but did find it strange why it functions incorrectly. Please enlighten me if there are any alternatives I could use.

 

Thank you.

 

For reference here's the code I used based on the script:

SetWakeUpTime(@Hour, @min + 1)
SetSuspend(True)

 

Share this post


Link to post
Share on other sites
Jewtus

Do you have admin access on both machines? 

Share this post


Link to post
Share on other sites
cres

Yes I do have admin access for both machines

Edit:

I tried

#RequireAdmin

also tried running the script as an administrator on the other machines but it only suspends/hibernates but does not resume afterwards.

Edited by cres

Share this post


Link to post
Share on other sites
Jewtus

Are both machines desktops? I know that my laptop has a configuration in it (My asus doesn't, but my toshiba does) that logs you off if suspend goes for more then a few hours, which has caused me issues with scripts before. There may be something like that on your machine, but I couldn't tell you with any real certainty, just my 2 cents.

Share this post


Link to post
Share on other sites
cres

Hi thanks for the reply again, no both machines are laptops, I will check if the configuration is the issue (the one which logs you off in a few hours or maybe after a suspend/hibernate)

Thanks.

Share this post


Link to post
Share on other sites
Jewtus

Thought it might be something like that. Congrats and welcome to the Autoit boards!

  • Like 1

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

×

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.