Detecting Ctrl-Alt-Del in Windows
rosuav at gmail.com
Fri Sep 2 17:47:54 EDT 2011
On Sat, Sep 3, 2011 at 2:26 AM, Den <patentsvnc at gmail.com> wrote:
> I've been doing some more thinking on what I want. This may be a
> better explanation. Is there a way of detecting if my program has
> lost "focus" (I'm not sure the correct term)? For example, if someone
> is typing in my program, but some other program takes control (or CAD
> has been pressed) I would like simply to log that. I have no interest
> in trying to hijack or interfere with anything, simply log it.
Ah, then yes most definitely! If you're writing a GUI program, a
LostFocus event is a normal thing to be able to catch.
Now, if you're writing a console program, that mightn't be so easy.
But certainly you can detect loss of focus to any window that you
More information about the Python-list