zeig mal wie du es gemacht hast, um zu schauen wo dein fehler liegt.. ^^
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 624, 389, 191, 123)
$Button1 = GUICtrlCreateButton("Button1", 112, 88, 321, 89, 0)
$Input1 = GUICtrlCreateInput("Input1", 456, 88, 145, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$iSleep = InputBox("Sleep", "Test")
Send("!{F4}")
EndSwitch
WEnd
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 624, 389, 191, 123)
$Button1 = GUICtrlCreateButton("Button1", 112, 88, 321, 89, 0)
$Input1 = GUICtrlCreateInput("zeit in millisec eingeben", 456, 88, 145, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Sleep(GUICtrlRead($Input1))
Send("!{F4}")
EndSwitch
WEnd
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 624, 389, 191, 123)
$Button1 = GUICtrlCreateButton("Button1", 112, 88, 321, 89, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$iSleep = InputBox("Sleep", "Test")
Sleep($iSleep)
Send("!{F4}")
EndSwitch
WEnd