Hi
I am looking for the best way to switch the Caps-lock key.
I found keyb_event
keydown: keybd_event %VK_CAPITAL, 0, 0,0
keyup : keybd_event %VK_CAPITAL, 0, %KEYEVENTF_KEYUP,0
But this has the disadvantage that I'm not sure if I am switching On Or Off.
So I use GetKeyState(%VK_Capital) first to check the state.
Now I'm wondering if there is a direct API call or memory address where I could set the Caps Lock no matter what state it is in?
I really need to buy a good Win32API bible any sugestions would be welcome too.
Thanks for help
Eric Kelderman
I am looking for the best way to switch the Caps-lock key.
I found keyb_event
keydown: keybd_event %VK_CAPITAL, 0, 0,0
keyup : keybd_event %VK_CAPITAL, 0, %KEYEVENTF_KEYUP,0
But this has the disadvantage that I'm not sure if I am switching On Or Off.
So I use GetKeyState(%VK_Capital) first to check the state.
Now I'm wondering if there is a direct API call or memory address where I could set the Caps Lock no matter what state it is in?
I really need to buy a good Win32API bible any sugestions would be welcome too.
Thanks for help
Eric Kelderman
Comment