Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# GUI Mouse
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 28-Mar-13 11:35am
Comments
Zoltán Zörgő at 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 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Sergey Alexandrovich Kryukov at 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)

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 130
4 DamithSL 105
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 28 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100