Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
laziness, impatience, and hubris
 
PerlMonks  

Re: Screensaver defeat for Win32

by hessef (Monk)
on Jan 19, 2004 at 11:14 UTC ( [id://322376]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Screensaver defeat for Win32

I agree with the previous poster, that the shutoff system should be a Big Red Button and not a keyboard.

(semi-off topic)

I had a somewhat similar problem in a C++ app. My program recorded audio and many people were recording long documents, not touching the keyboard/mouse while speaking and having the screen saver kick in. I fixed the problem by turning the screen saver off during recordings with the following Microsoft's Visual C++ code:

(turn off the screen saver)
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, FALSE, 0, 0)

(turn on the screen saver)
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, TRUE, 0, 0)

While that isn't perl code, it might be possible for Perl to make a similiar system call. I don't know, but I'm placing the information here anyways in case it might help somebody wants to start looking for another way to turn off the screen saver.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://322376]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.