Page 1 of 1

Windows sleep

Posted: Tue Dec 14, 2010 10:09 am
by SanMan
Hi,

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

Re: Windows sleep

Posted: Tue Dec 14, 2010 4:06 pm
by Ciege
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.

Re: Windows sleep

Posted: Wed Dec 15, 2010 3:19 pm
by SanMan
Thank you for your information. Must try it out.