#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 140, 119, 192, 114)
$Input1 = GUICtrlCreateInput("0", 32, 16, 49, 21)
GUICtrlCreateUpdown(-1)
$Button1 = GUICtrlCreateButton("Старт", 24, 64, 75, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$kol=GUICtrlRead($Input1)
For $i=1 To $kol
ConsoleWrite(@CRLF&'Строка'&$i)
Next
EndSwitch
WEnd