Opt("GUIOnEventMode", 1) ; Wechsle in den OnEvent Modus
;-----------------------------------
GUICreate("AutoIt", @DesktopWidth, @DesktopHeight , 0 , 0)
GUIsetstate()
Global $input[31]
[/autoit][autoit][/autoit][autoit][/autoit][autoit]$input[1] = GUICtrlCreateInput("", 0, 0, @DesktopWidth)
$input[2] = GUICtrlCreateInput("", 0, 20, @DesktopWidth)
$input[3] = GUICtrlCreateInput("", 0, 40, @DesktopWidth)
$input[4] = GUICtrlCreateInput("", 0, 60, @DesktopWidth)
$input[5] = GUICtrlCreateInput("", 0, 80, @DesktopWidth)
$button = GUICtrlCreateButton("Start", @DesktopWidth / 2 - 75 , @DesktopHeight / 2 - 50, 150, 100)
GUIctrlsetonevent($button, "Start")
While 1
Sleep(1000)
Wend
Func Start ()
sleep(5000)
For $i = 1 to 5
If $input[$i] = "Hi" Then
$input[$i] = "Beispiel"
EndIf
send($input[$i])
next
EndFunc
Eigentlich sollte dieses Programm schreiben was man in die $input[] Varriablen geschrieben hat und wenn es "Hi" Ist sollte dort "Beispiel" stehen aber es spuckt nur Zahlen aus.
Warscheinlich liegt es an den [] klammern ich habe damit das erste mal was gemacht (außer natürlich bei Mousegetpos usw.) .