VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Detect inactivity of the Desktop Spanish: Detectar la inactividad del Sistema Globalmente

Ivan Serdoch  (1 Submission)   Coding Standards   Beginner   Wed 3rd February 2021

Fijarse la cantidad de Segundos de Inactividad del teclado y mouse de todo el sistema (no solo de la app.)

Inputs
Se fija si presionas alguna tecla, haces click con el mouse, o lo moves...

Assumes
Utiliza APIs

Returns
Segundos transcurridos desde la inactividad

Side Effects
Creo que ninguno

API Declarations
'Funciones API que se utilizan:
Public Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Public Const VK_LBUTTON = &H1 'Boton izquierdo del Mouse
Public Const VK_RBUTTON = &H2 'Boton derecho del Mouse
Public Const VK_MBUTTON = &H4 'Boton central del Mouse (Generalmente la Ruedita o scroll)
Public Type POINTAPI
x As Long 'Coordenada X de la posicion del Mouse
y As Long 'Coordenada Y de la posicion del Mouse
End Type

Rate Detect inactivity of the Desktop Spanish: Detectar la inactividad del Sistema Globalmente (3(3 Vote))

Download Detect inactivity of the Desktop Spanish: Detectar la inactividad del Sistema Globalmente

Detect inactivity of the Desktop Spanish: Detectar la inactividad del Sistema Globalmente Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters