tags:

views:

70

answers:

1

In our program we use Microsoft's UserActivityHook.dll to determine when a user of our Windows Forms app has been idle for more than X seconds. This allows us to replicate an 'auto-away' behavior much like MSN/Live Messanger when there has been no keyboard or mouse events after a certain amount of time.

Ive always wondered why .NET (to my knowledge) has not implemented a way to interact with such global events. It seems that the FileSystemWatcher class is similar, in that it notifies the program of file changes that occur outside the program, why not a similar function for mouse/keyboard events?