Solved

Get info about mouse buttons

Posted on 2004-09-11
7
156 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
7 Comments
 
LVL 4

Expert Comment

by:LMuadDIb
Comment Utility
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
Comment Utility
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
Comment Utility
Yep that's right

Close the question and get a refund
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 11

Author Comment

by:ZhaawZ
Comment Utility
How can I do that?..
0
 
LVL 2

Expert Comment

by:-Karamja-
Comment Utility
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
Comment Utility
Closed, 100 points refunded.
PashaMod
Community Support Moderator
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now