[Gambas-user] Does really nobody have an idea?
Benoît Minisini
gambas at ...1...
Thu Sep 8 17:54:26 CEST 2011
> >
> > I had another idea : you can create a timer that checks the mouse
> > absolute coordinates every 10 seconds (for example). If the mouse does
> > not move during six timer ticks (so one minute), you can assume that the
> > user is not doing anything.
> >
> > Of course he may use the keyboard only. But then you can use the global
> > keypress event handler "Application_KeyPress" to reset the previous
> > timer.
> >
> > Regards,
>
> Argh - where do I have to place Application_KeyPress in code to let it
> react anywhere in the program? Is there an application-global SUB?
>
> Rolf
>
In the startup class, as a public static method (like the Main sub).
Regards,
--
Benoît Minisini
More information about the User
mailing list