Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[VB] Keylogger

I'm currently working on a keylogger for educational purposes and I'm wondering how I can improve this code:

Spoiler (Click to View)

I know that adding tons of cases is pretty unprofessional, but what would be a better way of doing this?
There is no other option as far as i knowyou must use GetaSyncKeyState :)
(Jan 20, 2013 12:05 AM)4RG0S Wrote:  There is no other option as far as i knowyou must use GetaSyncKeyState :)

Would there be any way to capitalize my letters instead of having the program print out long lines of code (for example: "[Shift]a" would be changed to A)?
(Jan 20, 2013 12:22 AM)Air X Wrote:  Would there be any way to capitalize my letters instead of having the program print out long lines of code (for example: "[Shift]a" would be changed to A)?

This may work^^
if logger = 16 and 65 then
rtb1.text += "A"
end if
Sorry ScooterSam, but your suggestion would not work, since it makes no sense for any integer to have two simultaneous values.

A more sensible route may be to find handlers for key down and key up, then switch a boolean for every time the shift key is depressed and released. In this way, you could just add letter keys which are upper or lower case, depending on whether this boolean is true or false.