Is there any way to store the X position of the mouse cursor at a specific time as a global variable

Trips

Well-known member
Joined
Aug 7, 2010
Messages
2,788
There are an X-axis and a Y-axis in a mouse position. Is there any way to record an X-axis position as an integer in a variable, so that it can be retrieved from the variable for the use in anything it is needed for. If so, is there any
way to instruct the program to time for how long it is running and when it is running for a second (for the sake of example) catch the exact X-position of the mouse cursor and store it as an int variable x1? Then, count another second, and store another X-position
as an int variable x2? There is System.Windows.Input in use in WPF, but it is possible to bring System.Windows.Forms to use, but is it crucial? Open to any thoughts on the subject. Thank you.

View the full article
 
Back
Top