>>Does anyone out there know of a way to get the state of either of these 2 keys.
>>
>>I have a window that reacts differently depending is the Shift key is pressed. This works just fine unless the user:-
>>1) releases the key in the window
>>2) switches to another window where they press the key in anticipation then
>>3) select the window that is looking for the Shift status
>>
>>there appears to be no way of knowing that they have the key pressed as they select the window.
>>
>>Anyone got a any thoughts?
>
>
>#define VK_SHIFT 0x10
>#define VK_CONTROL 0x11
>#define VK_MENU 0x12
>
>declare short GetKeyState in Win32API integer nVirtKey
>if GetKeyState(VK_SHIFT)<0
> * Shift is down
>endif
Cetin
Cetin
Thanks that looks brilliant and yet so simple!
Jeremy
Caroline