#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    1
    Rep Power
    0

    Anyway to do this in python?


    Hi, I just need you to point in the right direction. I am a newbie to python and I have been assigned by my group to look into whether its possible to do this with python:

    We have to able to tell when the application window loses focus or another window is opened. The idea is that only the application should be on focus for the duration of its task. If user selects anything else it has to perform an action. I am thinking of something like LostFocus or similar in python. Any help would be appreciated!
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69

    win32gui


    Hi B1acksun,

    I found this on comp.lang.python, seems to be what your looking for, it is Platform dependent but if your working on Windows it should be fine.

    http://groups.google.com/groups?hl=e...rg%26rnum%3D15

    Hope this helps,

    Have fun,
    Mark.

IMN logo majestic logo threadwatch logo seochat tools logo