Check if an Application is Idle for a Period of Time

Category:
System/API
Type:
Snippets
Difficulty:
Intermediate
Author:
Arkadiy Olovyannikov

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
Basically, you can use Timer control and _Mouse... and _Key.... events to accomplish this task. But if your form has a lot of controls....

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: