Mouse Events
-
Im trying now to get the coords of the mouse on the SCREEN out side my form i was thinking to use win32 WindowProc function on the desktop handler ( using getDesktopWindow() ) im familiar with using external functions like getDesktopWindow but i just have no clue how to use WindowProc function .. it suposed to get callback function or something how to do it in c# ??? thanks :)
-
Im trying now to get the coords of the mouse on the SCREEN out side my form i was thinking to use win32 WindowProc function on the desktop handler ( using getDesktopWindow() ) im familiar with using external functions like getDesktopWindow but i just have no clue how to use WindowProc function .. it suposed to get callback function or something how to do it in c# ??? thanks :)
Have a look at System.Windows.Forms.Cursor.Position.
-
Have a look at System.Windows.Forms.Cursor.Position.
-
Im trying now to get the coords of the mouse on the SCREEN out side my form i was thinking to use win32 WindowProc function on the desktop handler ( using getDesktopWindow() ) im familiar with using external functions like getDesktopWindow but i just have no clue how to use WindowProc function .. it suposed to get callback function or something how to do it in c# ??? thanks :)
-
But it will only give me the position can i make a function which will catch mousemove event outside the window?
Search for global hooks here on CodeProject and you'll find some articles that describe how to do what you're looking for.