November 17th, 1999, 12:35 PM
I'd like to be able to clear a screen saver using mscomm event instead of a mouse or keyboard event. I've tried using systemparametersinfo and mouse_event api with no success. Any suggestions?
Thanks in advance.
Ravi Kiran
November 18th, 1999, 03:59 AM
How about trying Posting a WM_CLOSE command to the ScreenSaver app.
This depends on which OS you are running, on NT, SS runs on a seperate desktop. so to determine if the SS is running or not is a little different - you need to look for that Desktop. On 95, you can get the SS exe name from registry, then find if that app is running, with some kind of EnumWindows function, and then then post a WM_CLOSE message to that window. IDNK if this is any different in WIN98.
This technique should work, theoritically atleast :-)
RK