views:

262

answers:

1

Hi all, I need wake up PC from sleep to perform some actions - from C#. I've used CreateWaitableTimer functions, everything goes fine, at given time PC wakes up - but monitor stays in power save mode (turned off). So i want to know - how possible to turn on monitor after wake up?

PS I've tried "Complete Guide on How To Turn A Monitor On/Off/Standby" - with SendMessage (Codeproject) and SetThreadExecutionState(ES_DISPLAY_REQUIRED) - it doesn't work

Any ideas?

A: 

Try making the mouse move. When i wake up my Windows 7 system with a tap on the keyboard the screen stays black until i move the mouse.

Cursor.Position = new Point(x, y);
Erik
No, it also doesn't work. But after i turn on monitor by pressing keyboard key - i've noticed that cursor set to (x,y) position, so code been executed
alek.sys