CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    clearing screensaver

    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.


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: clearing screensaver

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured