Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Win32 idle state (screensaver like)

by halley (Prior)
on Sep 28, 2007 at 14:31 UTC ( [id://641540]=note: print w/replies, xml ) Need Help??


in reply to Re: Win32 idle state (screensaver like)
in thread Win32 idle state (screensaver like)

In Win32, Screen Saver programs are not actually processes, and must have a window message loop (but not a *normal* window message loop, that would be too simple). It's not possible to use a console app as a screen saver, and it's often very hard to retrofit a regular Win32 windowing app to support the strange limitations that face screen savers.

Separately, you then lose the ability to run a user-specified screen saver.

Much more likely, you want your idle perl task to determine the "system load" in some other way, and start your work only when the system load is low for a suitable amount of time.

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re^3: Win32 idle state (screensaver like)
by thenetfreaker (Friar) on Sep 28, 2007 at 15:51 UTC
    Not quiet, the use can have tasks running, like trackers (e-Mule, torrents, etc), or an installation of some big program that takes a lot of time, or any other long task that requires respective CPU usage. Which means that i need to get from the system in some way information that no key was pressed and the mouse wasn't moved for a "suitable" amount of time.
    Like when ICQ drops to Away mode after a while that the PC wasn't touched.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-03-28 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found