"Trey Keown" <[EMAIL PROTECTED]> wrote

> I was wondering, how could I disable all keyboard/mouse input for 
> the
> whole windows system while I have a video playing? So the user can't
> press, for example, the super key [one with windows logo on it], and 
> have
> the windows menu pop up?
> Could this be accomplished somehow through system hooks?

Yes it can be done using the low level Windows API calls. You could
do that from Python using ctypes.

But you really shouldn't! It's very easy to lock up a PC completely if
you do that and many users get very cross whem they run a program
which completely locks their machine and prevents them using it
for other things. After all they paid for a multi-tasking OS why 
should
applications prevent them from using it?!

>From a video playing perspective consider too how you might get rid
of a warning dialog that Windows (or your anti-virus scanner etc)
decides to pop onto the screen while watching the video?
You are stuck with a dialog blocking the view which you can't
get rid of till the video ends!

Alan G 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to