![]() |
|
[.NET] [VB] Keylogger - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] [VB] Keylogger (/showthread.php?tid=3190886) |
[VB] Keylogger - Air X - Jan 19, 2013 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? * - 4RG0S - Jan 20, 2013 There is no other option as far as i knowyou must use GetaSyncKeyState :) * - Air X - Jan 20, 2013 (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)? * - ScooterSam - Jan 20, 2013 (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 * - willtdotnet - Jan 20, 2013 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. |