System-wide events - REPOST [message #444232] |
Sat, 09 October 2004 09:26 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.03593 seconds