VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Low-Level KeyLogger

aYa.net  (1 Submission)   Miscellaneous   VB Script   Advanced   Wed 3rd February 2021

This application uses the SetWindowsHookEx function to retrieve all keyboard events. You can configurate the keys you want to receive by event callback function. Uses no timer + GetAsyncKeyState to fetch pressed keys. The user control sends the Chr-compatible byte code for the pressed character (if any), the name for the key/special key (if known), the application the key was typed in and a flag, indicating whether the application the user was typing in was changed. You may use this code as keylogger or modify it to prevent users from using windows default key combinations like Ctrl + tab etc. Plz vote if you like my code. My first submission on VBC ;)

Assumes
Some knowledge about windows hooks and subclassing.

Side Effects
Ensure to call .DisableLogging before shutting down application. Hook functions may cause application crashes if not unhook cleanly.

Rate Low-Level KeyLogger (4(4 Vote))

Download Low-Level KeyLogger

Low-Level KeyLogger Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters