Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect CTRL+CLICK MOUSE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00681517
Message ID:
00682899
Vues:
26
>The Message Only Discuss About detection in Keyboard...
>
>SHIFT + CTRL...
>
>But what i want is detection from combination of Keyboard and MOUSE
>CTRL + LEFT CLICK MOUSE..
>
>thanks..
>
>
>regards,
>tut_arie
Tut,

Declare the command somewhere in your code
#define VK_SHIFT          0x10
#define VK_CONTROL        0x11
#define VK_MENU           0x12

declare short GetKeyState in Win32API integer nVirtKey
Then in the Click event check the state of the Keys
if GetKeyState(VK_SHIFT)<0 and GetKeyState(VK_CONTROL)<0 
 * Shift and Ctrl are down
endif
Is that not what you are after?
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform