ich würde es eher mit einer if abfrage machen...
also wenn im input "dies" steht, tuh das...
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 361, 107, 192, 124)
$Input1 = GUICtrlCreateInput("", 8, 48, 209, 21)
$Button1 = GUICtrlCreateButton("Button1", 240, 48, 73, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$iRead = GUICtrlRead($Input1)
If $iRead = "hello" Then MsgBox("","","hi du da")
If $iRead = "dodo" Then Exit
EndSwitch
WEnd
wenn du es auf deine artmachen willst, geht es auch...
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 361, 107, 192, 124)
$Input1 = GUICtrlCreateInput("", 8, 48, 209, 21)
$Button1 = GUICtrlCreateButton("Button1", 240, 48, 73, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Switch GUICtrlRead($Input1)
Case "hallo"
MsgBox("","","hi du da")
Case "dodo"
MsgBox("","","by",1)
Exit
EndSwitch
EndSwitch
WEnd