If you've only just started I suggest you leave the GUI stuff until you've got the hang of the language. If you don't know how to call GetCursorPos then that sort of stuff is way too advanced for you at this stage.