Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Key down or Not
Message
 
À
18/08/2000 07:23:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00406551
Message ID:
00406586
Vues:
48
>mais comment on s'en sert où dois je la déclarer

Voici un exemple

#DEFINE VK_SHIFT 16
#DEFINE VK_CONTROL 17

*-* La déclaration peut être faite n'importe où
DECLARE SHORT GetKeyState IN Win32API INTEGER KEY

IF GetKeyState(VK_SHIFT) < 0

WAIT WINDOW "Shift key is down" NOWAIT

ELSE

WAIT WINDOW "Shift key is up " NOWAIT

ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform