Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Greetings,

I am currently working on a project in which I have to track the mouse cursor on the screen and then get the coordinates of where I left click. I have currently gotten the mouse hook to work which shows the coordinates of where the mouse cursor is within the window but I can't get the mouse click to work. Does anyone know how to accomplish this task?

Thank you,
John
Posted
Comments
Zoltán Zörgő 28-Mar-13 16:38pm    
Are you sure you made a hook? And what means "can't get the mouse click to work"? You are confusing: you need to track mouse activity on the whole screen or only over your application window?
Member 9927463 28-Mar-13 16:47pm    
I need to track the mouse movement on my screen only. When I say hook I mean the application right now tracks the mouse movement for the entire screen and displays the X and Y coordinate but I would like to click the mouse and have the X and Y value be stored as INTs

1 solution

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-Mar-13 17:42pm    
5ed.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900