Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Shift and Ctrl
Message
De
03/09/2001 13:28:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00551829
Message ID:
00551837
Vues:
44
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform