WxPython
Gabriel Genellina
gagsl-py at yahoo.com.ar
Mon Dec 4 17:32:12 EST 2006
At Sunday 3/12/2006 09:14, Raja wrote:
> I am trying to develop an application which would mainly do the
>following 2 things . I would like to know how it can be achieved and
>also the libraries needed for it .
>
>i) active window tracking
I'd use GetForegroundWindow+GetWindowText in a loop with a reasonable
delay (maybe 10 secs?). I can't find the former exposed on the
pywin32 package but I have an old version. Anyway you could be able
to use ctypes.
> ii) idle
I'd watch for the WM_SYSCOMMAND (SC_SCREENSAVE) and WM_POWERBROADCAST messages.
Note that neither of these tasks has to do directly with wxPython
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
More information about the Python-list
mailing list