Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 22:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



WinHttpSimpleRequest Login

Discussion on WinHttpSimpleRequest Login within the AutoIt forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
Trøjan's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 835
Received Thanks: 807
WinHttpSimpleRequest Login

Hey

Ich will nen Bot für die Website Gamezaion.com schreiben, scheitere aber bereits am Login. Vlt. kann mir ja einer von euch dabei helfen...

Hier ist erstmal mein Skript:
Code:
#include <WinHttp.au3>


#RequireAdmin
$hSession = _WinHttpOpen("User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36")
	$hConnect = _WinHttpConnect($hSession, "gamezaion.com")
	$sHTML = _WinHttpSimpleRequest($hConnect, 'GET', '/')
	$sHTML = _WinHttpSimpleRequest($hConnect, 'POST', '/index.php?page=login', 'www.gamezaion.com','username=Codebot&pass=010708&sub.x=0&sub.y=0')
	$sHTML = _WinHttpSimpleRequest($hConnect, 'GET', '/index.php?page=usercp')
	testit($sHTML)
	$sHTML = _WinHttpSimpleRequest($hConnect, 'GET', '/inventory')



_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hSession)



Func testit($hhmlw)
  FileWrite(@DesktopDir & "\debug.html", $hhmlw)
    ShellExecute(@DesktopDir & "\debug.html")
	EndFunc

Der angegebene Account ist ein Testaccount.
Wie man festellt wenn man es ausführt passiert einfach gar nichts.

Meine Vermutung war das es an den Parametern: x.sub und y.sub liegt.
Ich hab rausbekommen, dass diese die Mausposition beim Login sind und eigentlich jeder Wert davon angenommen werden sollte.

Nur funktioniert es eben nicht.
Hat von euch einer ne Idee?

mfg

Tro




//edit: Lösung gefunden: Useragent war falsch und im http connect stand www. vor.
Trøjan is offline  
Old 08/26/2013, 11:26   #2


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
#closed (solved)
Quote:
//edit: Lösung gefunden: Useragent war falsch und im http connect stand www. vor.
Lawliet is offline  
Closed Thread


Similar Threads Similar Threads
Warrock Pvp Server Complete Succesfully Game Login But Login Map Error :S
02/22/2011 - WarRock - 7 Replies
Hi friends succesfully warrock pvp server and game login ıd pw succesfully server list WREMU Create room friedns came friends ready game start do not be eniting please help :(
Hot ice Down oder login Server down!!Wenn ja sagt wolfi bescheid dass login down ist
01/01/2010 - Metin2 Private Server - 1 Replies
hallo kann jmnd bescheid sagen bitte



All times are GMT +2. The time now is 22:12.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.