Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting the shift state of keys in realtime
Message
De
06/02/2019 14:22:56
 
 
À
06/02/2019 14:06:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01665968
Message ID:
01665971
Vues:
58
>Me again,
>
>I have been playing around with the WinApi's getKeyState and GetKeyboardState function to determine when the Shift, Ctrl, or Alt key are pressed when a routine occurs. But the results tend to be random. Does anyone have a solution that returns the state of these keys? FYI. the routine is occurring in a TImer. I am attempt to implement a more dynamic tooltip that would display the content based on the state of the shift state and the content the mouse happens to be over at the time.
>
>Any suggestion are welcome.

I know it doesn't answer your question, but have you checked the KeyPress event (that applies to various controls and form class) ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform