From: "Stefan Lubitz" <[EMAIL PROTECTED]> > I have the problem that after 10 minutes the Screensaver of my PC is > getting activated. I am not able to change it, because it is a W2k > Domain policy. Now I thought, that I could write a small Perl Script, > which is turning on and off the Scrolllock Key, means "simulating" a > Keyboard input. Does anyone know how to do this with Perl? Or is there > another solution?
I don't think this will work. That is unless you call some API functions to allow this type of "imput" to affect the screensaver. Anyway you should be able to disable screensaver by Win32 API function SystemParametersInfo() http://msdn.microsoft.com/library/default.asp?url=/library/en- us/sysinfo/base/systemparametersinfo.asp You may call this function using Win32::API (installable by PPM), Look up the SPI_SETSCREENSAVEACTIVE option in the docs above. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>