[wxpython-users] How to detect inactivity?

David Anderson zerty.david at gmail.com
Thu May 15 08:19:50 PDT 2008


I was thinking in doing this, Capture all the keyboars/Mouseclicks events,
When it's captured, it's event handler would reset the timer to 0, and when
it reaches ten minutes I would exit the app...
It's possible to do this?

On Wed, May 14, 2008 at 7:25 PM, Robin Dunn <robin at alldunn.com> wrote:

> David Anderson wrote:
>
>> Hi.. How can I detect how much time the user was ianctive?
>> For example, didnt made a single click or keyborad action, Is there a way
>> to do this?
>>
>
> You can watch for mouse and keyboard events in a handler bound to the app
> object.  This will at least let you know if the application is inactive. =
 If
> you need to know if the whole system is inactive then you'll probably need
> to use some native APIs to get that information.
>
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org  Java give you jitters?  Relax with wxPython!
>
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200805=
15/48f570db/attachment.htm


More information about the wxpython-users mailing list