sowas ?
Spoiler anzeigen
[autoit]
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 195, 125, 192, 124)
$Input1 = GUICtrlCreateInput("Input1", 24, 16, 137, 21)
$Button1 = GUICtrlCreateButton("Button1", 24, 56, 137, 33, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $i = 1
[/autoit] [autoit][/autoit] [autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUICtrlSetData($Input1, $i)
$i += 1
EndSwitch
WEnd