sunyw_2006 wrote:
I need to start/stop screensaver in my program, Please give me some hints how to do. Thanks.
For Starting ScreenSaver you can post this message:- ::PostMessage(HWND_BROADCAST,WM_SYSCOMMAND,SC_SCREENSAVE,0); For Stoping it manually, Simulate Mouse Click at 0,0 position:-
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);;
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);;
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You