Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
HotKeySet("{F9}","_Start")
Global $title = 'Archlord', $Run
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Collecter", 348, 138)
$Group1 = GUICtrlCreateGroup("", 8, 16, 329, 97)
$Label1 = GUICtrlCreateLabel("Attack Key :", 24, 40, 62, 17)
$Label2 = GUICtrlCreateLabel("Collect Key :", 24, 80, 63, 17)
$Input1 = GUICtrlCreateInput("3", 88, 40, 25, 21)
$Input2 = GUICtrlCreateInput("4", 88, 80, 25, 21)
$Label3 = GUICtrlCreateLabel("Wait attack :", 136, 40, 65, 17)
$Label4 = GUICtrlCreateLabel("Wait Collect :", 136, 80, 67, 17)
$Input3 = GUICtrlCreateInput("4000", 200, 32, 33, 21)
$Input4 = GUICtrlCreateInput("5000", 200, 80, 33, 21)
$Label5 = GUICtrlCreateLabel("( 1000 = 1 sec )", 248, 40, 78, 17)
$Label6 = GUICtrlCreateLabel("( 1000 = 1 sec )", 248, 80, 78, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _Start()
$Run = Not $Run
While $Run
ControlSend($title,'','','{TAB}')
ControlSend($title,'','',GUICtrlRead($Input1))
Sleep(GUICtrlRead($Input3))
ControlSend($title,'','',GUICtrlRead($Input2))
Sleep(GUICtrlRead($Input4))
WEnd
EndFunc