The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Magnum on December 14, 2010, 08:10:18 PM

Title: Determine virtual key code logic
Post by: Magnum on December 14, 2010, 08:10:18 PM
Looking at the Virtual key code table I

1. Didn't see key codes for non-capital letters
2.


push 500
    call Sleep
    push 5Bh            ;Left windowskey
    call GetAsyncKeyState
    push eax
    push 49h            ; I-key
    call GetAsyncKeyState
    push eax
    push 5Ch            ;right windowskey

.............

main proc
local msg:MSG
invoke RegisterHotKey,0,0,MOD_WIN,VK_049h ; Windows Key + I
Title: Re: Determine virtual key code logic
Post by: oex on December 14, 2010, 08:30:57 PM
There arent any you have to check shift state

Not sure what Q2. is :lol