Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Screensaver defeat for Win32

by hessef (Monk)
on Jan 19, 2004 at 16:14 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found