GiacomoLaw / Keylogger

A simple keylogger for Windows, Linux and Mac
https://simple-keylogger.github.io/
MIT License
2.06k stars 617 forks source link

All letters are Upper case in windows version #51

Closed Zedstron closed 6 years ago

Zedstron commented 6 years ago

well its so strange . its working fine just a small bug i think it stores all characters in upper case form. lower case letters are also converted to upper case.

NtRaiseHardError commented 6 years ago

Perhaps try using this instead:

// A-Z
if (vkCode >= 0x41 && vkCode <= 0x5A) {
    // Check capitalisation
    if (GetAsyncKeyState(VK_SHIFT) ^ ((GetKeyState(VK_CAPITAL) & 0x0001)) == FALSE)
        // Convert to lowercase
        vkCode += 32
    // Log key
}
Zedstron commented 6 years ago

Thanks that solved my problem. .

On Wed, 12 Sep 2018, 6:07 am dtm, notifications@github.com wrote:

Perhaps try using this instead:

// A-Zif (vkCode >= 0x41 && vkCode <= 0x5A) { // Check capitalisation if (GetAsyncKeyState(VK_SHIFT) ^ ((GetKeyState(VK_CAPITAL) & 0x0001)) == FALSE) // Convert to lowercase vkCode += 32 // Log key }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/GiacomoLaw/Keylogger/issues/51#issuecomment-420477050, or mute the thread https://github.com/notifications/unsubscribe-auth/AVVBylPchiOnxKQ_Ai_5Fg_o2hDPpP-Yks5uaF5MgaJpZM4Uffjv .