cres

Resume the system after suspend/hibernation

7 posts in this topic

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



Do you have admin access on both machines? 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

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

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

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

1 person likes this

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