|
|
Re: Knowing if my app is being used [message #459061 is a reply to message #459035] |
Fri, 29 July 2005 17:35 |
Eclipse User |
|
|
|
Originally posted by: seanmc42.hotmail.com
Well, presumably the widgets all hook into listeners, which call your
apps code - why not trigger off YOUR code?
Stefan Zeiger wrote:
> Mike Higginbotham wrote:
>
>> I have an app which needs to automatically log a user out after a
>> period of inactivity. The timer stuff is easy enough. The problem is
>> how do I know the user is actively using my app? I am hoping to not
>> have to hook into every widget to know they typed in it, or selected
>> it, or clicked it, etc.
>
>
> You could add an event filter to the display (Display.addFilter()) to
> listen for all MouseDown and KeyPressed events that occur in your
> application.
>
|
|
|
Re: Knowing if my app is being used [message #459066 is a reply to message #459035] |
Fri, 29 July 2005 21:30 |
Eclipse User |
|
|
|
Originally posted by: bob.objfac.com
Yes, but beware of timing users out during long-running operations. They
won't be happy, especially if the "log out" triggers strange failure
modes in the operations.
Bob
Stefan Zeiger wrote:
> Mike Higginbotham wrote:
>
>> I have an app which needs to automatically log a user out after a
>> period of inactivity. The timer stuff is easy enough. The problem is
>> how do I know the user is actively using my app? I am hoping to not
>> have to hook into every widget to know they typed in it, or selected
>> it, or clicked it, etc.
>
>
> You could add an event filter to the display (Display.addFilter()) to
> listen for all MouseDown and KeyPressed events that occur in your
> application.
>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03374 seconds