Im writing a keylogger, all works fine but when i push ´ the system displays two ´´ and the keylog grabs nothing to the file. Whats happening? Thx.
An odd symptom -- sounds like ' is going to the wrong handle, i.e. to the window instead of to the log file. ' has ascii 27h and scan code 28h; is either of these numbers something special in your source? Larry
Which keyboard layout are you using?
Im very angry, all works ok ... but when i press the key ´ or i tried: áéó ... it displays ´´ Now im writing with the keylogger activated ... look at this: ´´ <- i push only one time the key ´ but the system displays two ´ ´´a´´e´´i´´o´´u <- :? Help!! i hook "WH_JOURNALRECORD"
Are you hooking the WM_CHAR and WM_DEADCHAR messages? From MSDN Online:
TranslateMessage generates the WM_DEADCHAR message when it processes the WM_KEYDOWN message from a dead key. Although the wParam parameter of the WM_DEADCHAR message contains the character code of the diacritic for the dead key, an application typically ignores the message. Instead, it processes the WM_CHAR message generated by the subsequent keystroke. The wParam parameter of the WM_CHAR message contains the character code of the letter with the diacritic. If the subsequent keystroke generates a character that cannot be combined with a diacritic, the system generates two WM_CHAR messages.