#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$AutoSpawn_by_Huss4r = GUICreate("AutoSpawn_by_Huss4r", 267, 102, 192, 124)
$Input1 = GUICtrlCreateInput("Input1", 16, 40, 121, 21)
$Button1 = GUICtrlCreateButton("Start", 168, 8, 75, 33, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Stop", 168, 48, 75, 33, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
While 1
sleep(GUICtrlRead($Input1))
Send("t/spawn")
sleep(100)
Send("{ENTER}")
EndSwitch
Wend
WEnd
Prosze bardzo