If you need to get precise position of your mouse pointer then search forum for GetCursorPos api function - there are tons of samples posted.