Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12676

Re: Detecting Ctrl-Alt-Del in Windows

References <6e602a19-8cca-4924-bd95-df08615662d2@c8g2000prn.googlegroups.com> <d5a699af-83ae-48ca-b32c-3aedc4a96d2a@s2g2000prm.googlegroups.com>
Date 2011-09-03 07:47 +1000
Subject Re: Detecting Ctrl-Alt-Del in Windows
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.722.1315000077.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Sep 3, 2011 at 2:26 AM, Den <patentsvnc@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
control.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Detecting Ctrl-Alt-Del in Windows Den <patentsvnc@gmail.com> - 2011-09-01 08:52 -0700
  Re: Detecting Ctrl-Alt-Del in Windows Nobody <nobody@nowhere.com> - 2011-09-02 01:10 +0100
    Re: Detecting Ctrl-Alt-Del in Windows Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-09-01 22:19 -0700
    Re: Detecting Ctrl-Alt-Del in Windows Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-09-02 18:19 +1200
  Re: Detecting Ctrl-Alt-Del in Windows Stephen Hansen <me+list/python@ixokai.io> - 2011-09-02 00:06 -0700
  Re: Detecting Ctrl-Alt-Del in Windows Chris Angelico <rosuav@gmail.com> - 2011-09-02 17:55 +1000
    Re: Detecting Ctrl-Alt-Del in Windows Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-09-03 12:51 +1200
    Re: Detecting Ctrl-Alt-Del in Windows Nobody <nobody@nowhere.com> - 2011-09-03 08:49 +0100
  Re: Detecting Ctrl-Alt-Del in Windows Thomas Jollans <t@jollybox.de> - 2011-09-02 12:01 +0200
  Re: Detecting Ctrl-Alt-Del in Windows sjm <sjmsoft@gmail.com> - 2011-09-02 05:27 -0700
    Re: Detecting Ctrl-Alt-Del in Windows Den <patentsvnc@gmail.com> - 2011-09-02 09:19 -0700
    Re: Detecting Ctrl-Alt-Del in Windows Den <patentsvnc@gmail.com> - 2011-09-02 09:20 -0700
  Re: Detecting Ctrl-Alt-Del in Windows Web Dreamer <webdreamer@nospam.fr> - 2011-09-02 14:38 +0200
    Re: Detecting Ctrl-Alt-Del in Windows Tim Golden <mail@timgolden.me.uk> - 2011-09-02 13:45 +0100
  Re: Detecting Ctrl-Alt-Del in Windows Den <patentsvnc@gmail.com> - 2011-09-02 09:26 -0700
    Re: Detecting Ctrl-Alt-Del in Windows Chris Angelico <rosuav@gmail.com> - 2011-09-03 07:47 +1000

csiph-web