ich habe mir eine gui erstellt in der auch eine inputbox ist nun möchte ich den input in einer funktion einbinden!
wie tue ich das??
#include <GUIConstants.au3>
$Form1 = GUICreate("Jappy info", 280, 180, 200, 125)
$Input1 = GUICtrlCreateInput("Name", 15, 15, 150, 20, -1, $WS_EX_CLIENTEDGE)
$Button = GUICtrlCreateButton("LOS" , 50,50,175,25)
GUISetState(@SW_SHOW)
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
EndSelect
WEnd
Func Button()
#include <INet.au3>
$SRE = StringRegExp(_INetGetSource('http://www.jappy.de/suche?name=INPUT VON INPUT1'),'</strong><br>(.{18})',3)
[/autoit][autoit][/autoit][autoit]If Stringinstr(_INetGetSource('http://www.jappy.de/suche?name=INPUT VON INPUT1') , '<div class="erNick"><span class="no">') Then
MsgBox(0,"Jappy-on", "Momentan : on " & @CRLF & "Letzte aktivitet : " & $SRE[0])
Else
MsgBox(0,"Jappy-off", "Momentan : off " & @CRLF & "Letzte aktivitet : " & $SRE[0])
EndIf
EndFunc