So gehts:
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 259, 222, 192, 124)
$Input1 = GUICtrlCreateInput("A oder B?", 64, 64, 121, 21)
$Button1 = GUICtrlCreateButton("Start", 88, 136, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
Const $Ax = 515
Const $Ay = 500
Const $Bx = 1200
Const $By = 370
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Input1
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]Case $Button1
[/autoit] [autoit][/autoit] [autoit]If GUICtrlRead($Input1) = "A" Then
_deinskript($Ax, $Ay)
ElseIf GUICtrlRead($Input1) = "B" Then
_deinskript($Bx, $By)
EndIf
EndSwitch
WEnd
Func _deinskript($x, $y)
[/autoit] [autoit][/autoit] [autoit]Sleep(1000)
MouseMove(1200, 1200)
Sleep(1000)
MouseMove($x, $y)
Sleep(1000)
MouseMove(10, 1200)
Sleep(1000)
EndFunc ;==>_deinskript
[/autoit]Und bitte für Quellcode die Spoiler verwenden