Archived

This topic is now archived and is closed to further replies.

How do I get the mouse to display screen co-ords?

This topic is 5306 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When i set up my mouse and renderthe X and Y positions, it only displays up to 2 or something then goes back to 0. how do i set it to show the pixals on the screen? EG. X: 496 Y: 32

Share this post


Link to post
Share on other sites
Use the GetCursorPos(POINT pt) function. Just create a POINT object and call it in that function. Then your mouse coords will be (in my example) pt.x and pt.y

Share this post


Link to post
Share on other sites