Ich hab i2c's Beispiel kurz angepasst.
Spoiler anzeigen
#region - Timestamp
;2011-05-02 20:43:24
#endregion - Timestamp
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <array.au3>
Opt("GUIOnEventMode", 1)
$sString = "Hallo Welt! Das ist ein Teststring"
[/autoit] [autoit][/autoit] [autoit]$Form1 = GUICreate("Form1", 307, 74, 228, 148)
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
$Input1 = GUICtrlCreateInput("Input1", 8, 8, 201, 21)
$Button1 = GUICtrlCreateButton("Button1", 216, 8, 75, 25)
GUICtrlSetOnEvent(-1, "_check")
$Label1 = GUICtrlCreateLabel("Label1", 8, 40, 284, 17)
GUISetState(@SW_SHOW)
While 1
Sleep(100)
WEnd
Func _check()
$aWords = StringSplit(GUICtrlRead($Input1), " ")
$bIsInString = True
For $i = 1 To $aWords[0]
If Not StringInStr($sString, $aWords[$i]) Then
$bIsInString = False
ExitLoop
EndIf
Next
GUICtrlSetData($Label1, "Ergebnis: " & $bIsInString)
EndFunc ;==>_check
Func _exit()
Exit
EndFunc ;==>_exit