Solved

3 key mouse

Posted on 2000-05-03
2
137 Views
Last Modified: 2010-05-18
Does Visual Basic support 3-key or 4-key mouse.
I mean reading the click on every key of 3-key or 4-key mouse.
0
Comment
Question by:gamao
2 Comments
 
LVL 1

Accepted Solution

by:
pauljk earned 20 total points
ID: 2776063
The button argument of the mousedown event uses either a decimal value or an constant to represent a binary pattern. The following lists the binary value of the bits, the decimal equivalent, and the Visual Basic constant...

Binary Value Decimal Value Constant Meaning
001 1 vbLeftButton The left button is pressed.
010 2 vbRightButton The right button is pressed.
100 4 vbMiddleButton The middle button is pressed.


So it has representation for three buttons.
0
 
LVL 3

Expert Comment

by:vikiing
ID: 2776868
VB can't detect more than 3-button mice, simply 'cause Windoze consider them as non-standard. As Pauljk said, the Button argument of mouse-related events handle only a 3-bit field, to indicate which button/s where pressed when event was triggered.

Thus, you have no way to recognize more than that.

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question