Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect mouse button press

Status
Not open for further replies.

seba18

Programmer
Jul 26, 2004
38
0
0
How can I detect when a mouse button is pressed (not only inside a form)?

Thank's for any answer!
 
That's not helping me very much...

I want to detect a click on desktop, for example, not on a form or an object from a form. I know how to get the mouse coordinates(mouse.X and mouse.Y) with API call function, but I don't know how to get the mouse clicks.

Anybody can help me?
 
I suggest a keyword search in this forum, as I have presented a solution to this on a number of occassions here
 
Can sbody explain me that in this thread? Sorry, but the Search function of the site is disabled now and I need this tip ASAP.

Thank you!
 
In that case I'll point you at SetWindowsHookEx and WH_MOUSE_LL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top