Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A good thing to know...
Message
De
29/10/1997 15:28:06
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
A good thing to know...
Divers
Thread ID:
00057267
Message ID:
00057267
Vues:
64
I don't remember who asked the question the other day, but someone wanted to know how to capture a shift-click. I thing that the problem was resolved for her, but I have come across a win32 function perfect for capturing if a key is held down at any given time; getkeystate()

declare SHORT GetKeyState in Win32API INTEGER Key

getkeystate(17) returns .T. if the CTRL key is being held down and
getkeystate(16) returns .T. if the shift key is being held down.

I came across this usage in someone else's code, and I don't know where the 16 and 17 come from... they're not the inkey values... does anybody else know?
Erik Moore
Clientelligence
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform