Turning screen saver off in Delphi 1
Posted on 1999-07-02
How do you turn the screen saver off in Delphi 1 (for Windows 3.1 programming)? I want to turn it off when it is running. I've tried the WIN3.1 API SendMessage function, but I may be sending the wrong parameters. (Please test anything before you post it.) I have used the API function SystemParametersInfo to make sure a screensaver is available, and then the PostMessage (GetDeskTopWindow, WM_SYSCOMMAND, SC_SCREENSAVE, 0) to start the screensaver, but I can't get the screensaver to stop running.