Check for User Activity Throughout the System

Category:
System/API
Type:
Snippets
Difficulty:
Intermediate
Author:
m.posseth

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
Call this code with a timer ( or as you like :-) and check for user activity throughout the system. It returns false if the user is idle.

Great for showing ads in your prog after a period of user inactivity ( that is were i use it for ).

this code is all M. Posseth Code but I make it public domain feel free to use and modify this code as you want .

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

Declarations:

Code: