Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Idle

by batkins (Chaplain)
on Oct 19, 2003 at 18:20 UTC ( [id://300411]=note: print w/replies, xml ) Need Help??


in reply to Lock idle terminal ?

Like some of the other posters here, I'm inclined to think that setting a screen saver might be better. Either way, Term::ReadKey will almost certainly not do the job, because it catches keypresses for a terminal window, not for the whole system.

That said, you might want to check out MSDN and see if there are any functions that will let you determine if the computer is idle. Then use the Win32::API module to call that function and determine when the screen is ready to be locked. Then you can probably call a different function to do the actual locking.


The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows. - Frank Zappa

Log In?
Username:
Password:

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

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

    No recent polls found