?
Solved

Get info about mouse buttons

Posted on 2004-09-11
7
Medium Priority
?
169 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
Technology Partners: 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

Technology Partners: 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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.…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month15 days, left to enroll

771 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