more accurate cursor location

11-30-2005, 02:35 PM
I need to be able to find a cursor's location outside a form so I tried using the GetCursorPos API, but there is some kind of flaw in it or my mouse, and I keep getting incosistent locations.

For example, I run the program paintbrush and have my program running at the same time. I write down the coordinates of where my mouse is then click to draw the point on paint brush. I move my mouse around a bit then when i go back to the same point it has different coordinates with the correct coordinates being a half-inch to an inch off the point.

Is there a better way? I need accurate results

11-30-2005, 02:41 PM
Try posting some code, because the function should not be the one at fault. It is always relative to the top left corner [0, 0].

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum