Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Shift and Ctrl
Message
 
To
03/09/2001 13:28:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00551829
Message ID:
00552351
Views:
49
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform