Windows sleep

Ask general questions here.
SanMan
Posts: 147
Joined: Tue Apr 13, 2010 9:59 am

Windows sleep

Post by SanMan » Tue Dec 14, 2010 10:09 am

Hi,

I wonder is it possible to place Windows (where Ranorex is running) to sleep and wake it up with Ranorex code?

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Windows sleep

Post by Ciege » Tue Dec 14, 2010 4:06 pm

You can write code that crates an entry in the registry to wake the computer at a specific time. Much the same way the windows scheduler can be told to wake the computer to run a specific task. Just predetermine what time you want to wake the computer (i.e. now + 1 hour) calculate that time then write it to the registry. Now you can either put the computer to sleep (again you can do this from code) or wait for the computer to go to sleep on its own.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

SanMan
Posts: 147
Joined: Tue Apr 13, 2010 9:59 am

Re: Windows sleep

Post by SanMan » Wed Dec 15, 2010 3:19 pm

Thank you for your information. Must try it out.