#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.12.0 Author: #ce ---------------------------------------------------------------------------- #include $windows = GUICreate("Title", 280, 110) GUICtrlCreateLabel ("Route", 30, 10) $Radio1 = GUICtrlCreateRadio("1", 30, 30, 100, 20) $Radio2 = GUICtrlCreateRadio("2", 30, 50, 100, 20) GUICtrlSetState($Radio1, $GUI_CHECKED) $startbutton = GUICtrlCreateButton("START", 150, 40, 85, 25) ; BUTTON $button_x = 745 $button_y = 720 ;LEFT BUTTON $left_button_x = 935 $left_button_y = 585 ;RIGHT BUTTON $right_button_x = 385 $right_button_y = 585 GUISetState(@SW_SHOW) #comments-start ---------------------------------------------------------------------------- While $action = $startbutton If $Radio1 = $GUI_CHECKED Then MouseClick ("", $button_x, $button_y) If $Radio2 = $GUI_CHECKED Then MouseClick ("", $button_x, $button_y) Sleep (2000) Then MouseClick ("", $right_button_x, $right_button_y) Sleep (2000) Then MouseClick ("", $button_x, $button_y) Sleep (2000) Then MouseClick ("", $left_button_x, $left_button_y) Sleep (2000) Sleep 5 minutes after all this Loop until ESC or EXIT #comments-end ---------------------------------------------------------------------------- HotKeySet("{ESC}", "_Terminate") Func _Terminate() Exit EndFunc While 1 $action = GUIGetMsg() If $action = $GUI_EVENT_CLOSE Then ExitLoop EndIf WEnd