Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » System-wide events (was Detecting system idle time)
System-wide events (was Detecting system idle time) [message #444052] Tue, 05 October 2004 20:46
Grant Slender is currently offline Grant Slender
Messages: 14
Registered: July 2009
Junior Member
Hi,

I'm trying to figure out the best way forward to gather when the "entire"
system is not recieving any events - in other words, the user has left the
computer idle - no keyboard or mouse events for the entire system. Seeing no
events for 30 seconds could trigger a working progress in my application,
but only when the whole system is idle, not just my application.

I'm aware of how to do it for a native Windows application (using system
hooks) but wanted to investigate a SWT friendly way first. This kind of hook
might be something that could be part of the SWT library and if I develop
some code to do it, I'd like to offer it to the SWT team for consideration -
this means I had better do things the way the SWT like native OS hooks to be
done. Any tips or starting point would be great.


Original post that didn't get the right response:
############################################################ #####
G'day - was wondering what steps I'd need to take to detect when the
underlying OS is idle.

I'm kinda hoping that SWT might sorta support this kind of event detection -
if not, I suppose I'm gonna have to write a OS specific hook to detect when
mouse/keyboard events stop and then start a counter for a grace period and
then after, say 30 seconds, assume the system is indeed idle.

The trick is to ensure that the system is indeed idle and not that my app is
switched away and the user is really using another app.

Any tips really appreciated
Previous Topic:How to call a form??
Next Topic:[SWT_AWT] ScrollableSwingComposite v1.1
Goto Forum:
  


Current Time: Tue Sep 16 17:42:49 GMT 2014

Powered by FUDForum. Page generated in 0.05946 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software