VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



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

by Ivan Serdoch (1 Submission)
Category: Coding Standards
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

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
Code 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

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

Download Detect inactivity of the Desktop Spanish: Detectar la inactividad del Sistema Globalmente (2 KB)

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

No comments have been posted about Detect inactivity of the Desktop Spanish: Detectar la inactividad del Sistema Globalmente. Why not be the first to post a comment about Detect inactivity of the Desktop Spanish: Detectar la inactividad del Sistema Globalmente.

Post your comment

Subject:
Message:
0/1000 characters