Code:
#include <WinHTTP.au3>
$hSession = _WinHttpOpen("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1")
$hConnect= _WinHttpConnect($hSession, "www.elitepvpers.com")
$sHTML = _WinHttpSimpleRequest($hConnect, "GET" , "")
FileWrite("Antwort 1.html" , $sHTML)
$ID = "Account"
$PW = "Passwort"
$sHTML = _WinHttpSimpleRequest($hConnect, "POST", "forum/login.php?do=login", "www.elitepvpers.com", "vb_login_username=" & $ID & "&vb_login_password=" & $PW & "&cookieuser=1&s=&securitytoken=guest&do=login&vb_login_md5password=&vb_login_md5password_utf=")
FileWrite("Antwort 2.html" , $sHTML)
$aReturn = StringRegExp($sHTML, "Deine Benachrichtigungen:</a> <strong>(\d+?)</strong>", 3)
If @error Then
MsgBox(64, "", "Error")
Else
MsgBox(64, "", $aReturn)
EndIf
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hSession)
Mfg SenSatioN