Keylogger help required

May 14, 2013 at 10:18am
Friends i have started coding simple keylogger but i am facing problems when i press speacial characters(@,#,$ etc). I think what we get from GetAsyncKey fun. is virtual keys assigned against each key ... I want to covert that virtual keys to ASCII codes ... if any one knows that how to convert please tell
May 14, 2013 at 11:53am
You can also check if the shift key is pressed, then log the corresponding "special char" of that key.
Con: you will need to know whick type of keyboard/keyboard layout in use. You can check the GetSystemMetrics(); function for this.

EDIT: Also, chech the MapVirtualKey(); function.

Aceix.
Last edited on May 14, 2013 at 11:59am
May 14, 2013 at 12:20pm
int ToAscii(UINT uVirtKey,UINT uScanCode,PBYTE lpKeyState,LPWORD lpChar,UINT uFlags)
this can turn Keys into ASCII
May 16, 2013 at 11:19am
Thnx for the help ....

i used this

if(GetKeyState(VK_SHIFT) && GetKeyState(0x32)) /* 0x32 is code for @and2

it worked...thnx again for help
Topic archived. No new replies allowed.