Hallo nevermeltice.
Code:
$pos1=MousegetPos()
Deine mousgetpos is falsch. Du musst die return value auch aufschreiben.
Dimension Values
None Returns a two-element array containing the mouse coordinates: $array[0] = X coord (horizontal), $array[1] = Y coord (vertical)
0 Returns the X co-ordinate as an integer.
1 Returns the Y co-ordinate as an integer.