Solved

Get info about mouse buttons

Posted on 2004-09-11
7
164 Views
Last Modified: 2010-04-05
Hi!

How can I get information about mouse buttons? (which buttons are pressed)

Thanks..
0
Comment
Question by:ZhaawZ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 4

Expert Comment

by:LMuadDIb
ID: 12036424
you dont mention if you want mouse events globally or within your application

Within your applications check this out (3 part tutorial) :
http://delphi.about.com/library/weekly/aa071399.htm

Outside your applications:
http://www.swissdelphicenter.ch/torry/showcode.php?id=1729
0
 
LVL 11

Author Comment

by:ZhaawZ
ID: 12036451
found it..
if GetAsyncKeyState(VK_LBUTTON) and $8000) = $8000 then {left button is pressed; VK_RBUTTON for right button and VK_MBUTTON for middle button}
0
 
LVL 5

Expert Comment

by:Hypoviax
ID: 12036836
Yep that's right

Close the question and get a refund
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Author Comment

by:ZhaawZ
ID: 12037384
How can I do that?..
0
 
LVL 2

Expert Comment

by:-Karamja-
ID: 12037716
Post in Community Support,
http://www.experts-exchange.com/Community_Support/

Look at some of the other posts/questions you know what you have to do.
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 12072849
Closed, 100 points refunded.
PashaMod
Community Support Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

726 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