I need to know how i can get the coordinates of all (several) "active fields", such as buttons, links and windows.

What im trying to do is to form a "gravitational"-field around everyting worth clicking on so that the mouse pointer allways will be moving towads center of the closest "active field" relative to the tru pointer possition.

you with me?