Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyone know how to detect extra mouse buttons?
Message
 
 
À
14/06/2004 08:28:50
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00913218
Message ID:
00913395
Vues:
19
Hi Mike,

You're welcome. Let us know how it works for you.

>As always, thanks for the code and your help on this matter. I'll give it a try.
>
>>Hi Mike,
>>
>>The following code will allow you to check for those buttons. However, the buttons don't trigger any VFP event where you can put this code. Seem like a timer is your only option.
DECLARE SHORT GetKeyState IN WIN32API INTEGER
>>#DEFINE VK_XBUTTON1 5
>>#DEFINE VK_XBUTTON2 6
>>IF GetKeyState( VK_XBUTTON1 ) < 0
>>  DEBUGOUT "X1", PROGRAM(), TIME()
>>ENDIF
>>IF GetKeyState( VK_XBUTTON2 ) < 0
>>  DEBUGOUT "X2", PROGRAM(), TIME()
>>ENDIF
>>
>>>I'm using VFP8SP1 in Windows2000Pro. I have a Microsoft IntelliMouse that has the standard two buttons and a mouse wheel. In addition, there are two extra buttons on either side of the mouse. In Internet Explorer, they default to "Back" and "Forward" navigation.
>>>
>>>I was wondering if anyone knows how I can detect clicks for these two extra buttons in a VFP form. Something to do with the API perhaps?
>>>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform