adumitrescu
Programmer
Hello,
I would like to create a small app that keeps the WinXP screensaver from activating. There are many posts with the same suggestions: send keys, move the mouse pointer. I've done both using sendkeys() and setcursorpos(). I get the desired effect on the screen, BUT the screensaver still kicks in. Clearly this faked action is not counting to the screensaver routine.
Disabling the actual screensaver through the registry is not an option for me.
Surely there is a lower-level function (Win API?) that injects a keystroke or mouse movement that the screensaver routine will detect?
Has anyone found a solid answer to this FAQ?
-with thanks.
I would like to create a small app that keeps the WinXP screensaver from activating. There are many posts with the same suggestions: send keys, move the mouse pointer. I've done both using sendkeys() and setcursorpos(). I get the desired effect on the screen, BUT the screensaver still kicks in. Clearly this faked action is not counting to the screensaver routine.
Disabling the actual screensaver through the registry is not an option for me.
Surely there is a lower-level function (Win API?) that injects a keystroke or mouse movement that the screensaver routine will detect?
Has anyone found a solid answer to this FAQ?
-with thanks.