Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: is it possible to achieve exclusive control of the windows desktop ?

by halley (Prior)
on Jul 22, 2003 at 16:38 UTC ( [id://276808]=note: print w/replies, xml ) Need Help??


in reply to is it possible to achieve exclusive control of the windows desktop ?

It's not clear if you want to "achieve exclusive control" or if you merely want to implement a screen saver.

In Win32, screensavers are special executables which don't contain a regular window procedure or message loop of their own, but are handed certain filtered messages through a special window procedure. If you google for "MfcSaver" you'll get my C++ classes which wrap the Win32 concept of a screensaver. I haven't seen any script-language bindings for an equivalent program without the native window procedure.

If you're looking to achieve exclusive control, you'll have to get more detailed: do you want to get keyboard hooks? mouse capture? GDI lockdown? Each of these should be pretty straightforward if not childs' play with the perl-Win32 API bindings, but it's an API of inclusion: by that, I mean that you have to know what you want to control before you can add support to control it. Any Windows feature your program isn't aware of, it won't be able to control. There's no "lock down everything, and let me unlock this or that," at least, none which are documented.

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

  • Comment on Re: is it possible to achieve exclusive control of the windows desktop ?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found