Been struggling with this for 3 hours, is really frustrating, any help would be much appreciated. All I wanna do is move the mouse to the selected text in my richtext control.

Code:
Dim CaretLoc As POINTAPI
GetCaretPos CaretLoc
SetCursorPos CaretLoc.X * Screen.TwipsPerPixelX, CaretLoc.Y * Screen.TwipsPerPixelY
doesn't put the mouse anywhere near where I want, i've taken out the screen stuff too, changed it to divide, neither helped.