Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Shift and Ctrl
Message
From
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:
00551837
Views:
45
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform