Danke Freddy! Ich habe jezt ein Code geschrieben, ich will aber das die Bananenanzahl in eine Form angezeigt wird, die ich mit FD erstellt habe. Und nicht in einer Msgbox!
Hier mal der Code:
Code:
#include<WinHttp.au3>
$hSession = _WinHttpOpen("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0")
$hConnect = _WinHttpConnect($hSession, "www.bananenkoenig.de")
$sHTML = _WinHttpSimpleRequest($hConnect, "GET", "")
FileWrite("Antwort 1.html", $sHTML)
$sHTML = _WinHttpSimpleRequest($hConnect, "POST", "index.php?ac=login", "www.bananenkoenig.de", "selserver=Plantage%A01&user=Benutzername&password=Passwort&x=124&y=16")
FileWrite("Antwort 2.html", $sHTML)
$aReturn = StringRegExp($sHTML, "Bananenpflanzen:</b> (\d+?) Stück</td>", 3)
MsgBox(64, "Bananenanzahl", $aReturn[0] & " Bananen")
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hSession)