it's in the
player commands in the wiki - I have provided examples for both
getCursorPos &
setCursorPos 
*edit: or did you mean have it move to a position by moving across the screen rather than being set?
if so - it is possible, but it won't necessarily be very smooth.