Jump to content

Help W/ Waking System From Standby/hibernate


Recommended Posts

Hi all,

I'm new to using AutoIt. I'm trying to use AutoIt for work purposes where I'm looking to write a script that will make my system go into and out of stand by every couple minutes or so.

I've used the following command to place my system into stand by:

Shutdown(32)

But I'm still trying to find a way to wake my system up.

I started looking into using the CreateWaitableTImer and SetWaitableTimer but kind of got stuck on how to set it up the parameters properly for it to all work.

Is there a quicker or better way to do this? I'm so stuck.

If everyone has some insights or info. on this please do help~!

Thanks lots!

Gomi~

Link to comment
Share on other sites

Question:

Say for example if this is my code>>

Shutdown(32) ; system is in stand by mode now

Sleep(10000) ; i want it to wait for 10 seconds before waking

[code for mouse move that should wake up the system]

After the system is placed into stand by will the script still continue to run? Does the execution of the script stops right after Shutdown(32) ?

If thats the case then it would mean that if i had code for mousemove it would never get executed until the system does come out of stand by?

Link to comment
Share on other sites

not working ;)

here's the code that I have in my script:

Shutdown(32)

Sleep(10000) ; wake up system after 10 seconds

MouseMove(900,600)

MsgBox(0, "testing", "testing testing")

After going to stand by, the system did not wake up after a minute plus.

In the end I had to manually moved the mouse to wake the system. Once my Windows started, I saw the second part of my code execution. Pretty much after 10 seconds, I saw my MouseMove to the middle of the screen and then the pop up of a message box.

Looks like the script stopped executing after the system goes into stand by and does not continue until it is awaken. :think:

any suggestions? has anyone used waitable timer objects before? this is the only way that i'm seeing so far that can wake the system from a suspend mode. but im having trouble putting in the correct parameters. argh! :)

http://msdn.microsoft.com/library/default....mer_objects.asp

help help help~~~ :(

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...