Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
No such thing as a small change
 
PerlMonks  

Re: Screensaver defeat for Win32

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


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.


Comment on Re: Screensaver defeat for Win32

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://322376]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2014-04-17 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (450 votes), past polls