Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 05:25

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

Advertisement



AutoIT WinHTTP PacketBot Problem

Discussion on AutoIT WinHTTP PacketBot Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2011
Posts: 426
Received Thanks: 112
AutoIT WinHTTP PacketBot Problem

Hi,

ich arbeite derzeit an einem kleinen Darkorbit Packet-Bot.
Nur scheitere ich beim Login schon.
Also bis zur Instance auswahl komm ich aber dann die Instance wählt es nicht aus. ich habe hier mal meinen Code gepostet ich hoffe ihr könnt mir schnell helfen.

HTML Code:
#include <WinHTTP.au3>

$hSession = _WinHttpOpen("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0 Firefox/12.0")
$hConnect = _WinhttpConnect($hSession, "www.darkorbit.com")
   
   Login ()
   GetInstance()
   

Func Login ()    ;Soltte Login Daten an Darkorbit senden

$sHTML = _WinHttpSimpleRequest($hConnect, "POST", "/?locale=de&aid=2958&aip= HTTP/1.1", "darkorbit.com", "loginForm_default_username=Username&loginForm_default_password=password&loginForm_default_login_submit=Login")
FileWrite("Leer.html" , $sHTML)
EndFunc

Func GetInstance () ;Sollte Instance auswählen
$sHTML = _WinHttpSimpleRequest($hConnect, "POST", "http://int1.darkorbit.bigpoint.com/indexInternal.es?action=internalStart")
FileWrite("Leer.html" , $sHTML)
EndFunc


_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hSession)
deathline4ever is offline  
Old 05/29/2012, 12:17   #2


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
Ja, was kommt denn als HTML zurück?
Lawliet is offline  
Old 05/29/2012, 13:24   #3
 
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
Du könntest und auch einen DarkOrbit Account zur verfügung stellen, da ich keinen habe. Dann sparen wir uns das ganze mit dem Live Http Headers und Quellcode posten.
Freddy​ is offline  
Old 05/29/2012, 14:10   #4
 
elite*gold: 0
Join Date: Jan 2011
Posts: 426
Received Thanks: 112
Account:

Username:
TestEPVP
Passwort:
TestEPVP


@Lawliet:

Ich komm zur Server auswahl nicht mehr ich will aber auch noch in die Instanz rein.
Das versuche ich mit der Funktion GetInstance
deathline4ever is offline  
Old 05/29/2012, 14:14   #5


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
Wäre nett, wenn wir auch wissen dürften was eine Instanz in diesem Fall ist
Lawliet is offline  
Old 05/29/2012, 20:36   #6
 
elite*gold: 0
Join Date: Jan 2011
Posts: 426
Received Thanks: 112
http://int1.darkorbit.bigpoint.com/indexInternal.es?action=internalStart
deathline4ever is offline  
Old 05/30/2012, 21:15   #7
 
elite*gold: 0
Join Date: Jan 2011
Posts: 426
Received Thanks: 112
Quote:
Originally Posted by Lawliet! View Post
Wäre nett, wenn wir auch wissen dürften was eine Instanz in diesem Fall ist


Aso Sry hab mich verlesen^^

Ehm eine Instanz ist sozusagen von einem Server ein Game.(Welt)

Deutschland 1
Deutschland 2
Deutschland 3

usw.


In meinem Fall ist es int1

Ist von dem Game die Internationale Version für int (Server1)

da wird nur vor der Hauptadresse
int1. angehängt
und

/indexInternal.es?action=internalStart

muss auch dazu damit es weiß auf welche seite es navigieren soll.
deathline4ever is offline  
Reply


Similar Threads Similar Threads
WinHTTP Proxy Problem
10/30/2011 - AutoIt - 8 Replies
Hallo com, habe folgendes Problem bei der Proxy Einstellung mit WinHTTP. Mein Code sieht wie folgt aus: #include <WinHTTP.au3> #include <String.au3> #include <Array.au3> $Proxy = "59.66.63.182:8909"



All times are GMT +1. The time now is 05:25.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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