VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Activity/Inactivity Monitor for Application or Global

Parmender Dahiya  (8 Submissions)   Miscellaneous   Intermediate   Wed 3rd February 2021

How to get the inactivity timeout for an application or globally? Here is the answer. Application timeout means a particular application is running but no mouse or keyboard activity is there for that application for a particluar time. On VBC I found only for Global but this code has both application and global.I have made for the application also. This code can be directly incorporated into your application in minutes.

API Declarations
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Declare Function GetForegroundWindow Lib "user32" () As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long

Rate Activity/Inactivity Monitor for Application or Global (4(4 Vote))
Activity/Inactivity Monitor for Application or Global.bas

Activity/Inactivity Monitor for Application or Global Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters