> > > > 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 ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user