Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 03:06

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

Advertisement



Pennergame Login

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2008
Posts: 467
Received Thanks: 30
Pennergame Login

Hi,
will einen Pennergame-Flaschen-Sammler-Bot erstellen und stecke bereits beim Login fest. :s
Der Login-Button hat keinen Namen und ich habe es mit _IEFormSubmit($IE) erfolglos versucht.

Hier ist mein Script,kann mir jemand sagen,was ich da falsch mache und wie ich mich bei Seiten bzw. bei Pennergame Button drücken kann,wenn sie keinen Namen haben?

Ich gebe jedem ein Thanks,der mir eine hilfreiche Antwort gibt!!!

Danke

Code:
#include <IE.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("PennergameBot Version 1.0", 615, 438, 192, 124)
$Button1 = GUICtrlCreateButton("Login", 0, 104, 99, 41)
$Group1 = GUICtrlCreateGroup("Login", 0, 0, 185, 105)
$Benutzername = GUICtrlCreateInput("", 16, 32, 161, 21)
$Label1 = GUICtrlCreateLabel("Benutzername", 16, 16, 72, 17)
$Label2 = GUICtrlCreateLabel("Passwort", 16, 56, 47, 17)
$Passwort = GUICtrlCreateInput("", 16, 72, 161, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button2 = GUICtrlCreateButton("10 Minuten sammeln", 96, 104, 145, 41)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			$IE = _IECreate ("http://reloaded.pennergame.de")
			_IELoadWait($IE)
			$Username = _IEGetObjByName($IE, "username")
			_IEFormElementSetValue($Username,(GuiCTRLRead($Benutzername)))
			$Passwort = _IEGetObjById($IE, "password")
			_IEFormElementSetValue($Passwort,(GuiCTRLRead($Passwort)))
			_IEFormSubmit($IE)

	EndSwitch
WEnd
armin555 is offline  
Old 12/06/2011, 20:20   #2
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Machs einfach nciht mit IEau3. Das klappt nicht gut. Nimm was anderes, wie: WinHttp, WebTcp(Sehr gut), TCP oder was es da noch gibt...

MfG Ludder231
Ludder231 is offline  
Thanks
1 User
Old 12/06/2011, 20:30   #3
 
elite*gold: 0
Join Date: Aug 2008
Posts: 467
Received Thanks: 30
Gibt es dafür ein ausfürliches Tutorial?
Bin noch Anfänger und programmiere mit AutoIt seit 1 Woche.

Aber wäre toll,wenn ihr mir noch sagen könntet,wie es mit IE.au3 geht.
armin555 is offline  
Old 12/06/2011, 20:41   #4
 
~.ScoiL's Avatar
 
elite*gold: 70
Join Date: Jul 2011
Posts: 496
Received Thanks: 194
Ja gibt es.
Von Shadow gibt es noch ein Tutorial zur IE.au3 UDF.
~.ScoiL is offline  
Thanks
1 User
Old 12/06/2011, 20:59   #5
 
elite*gold: 0
Join Date: Aug 2008
Posts: 467
Received Thanks: 30
Hm ok,kann mir aber jemand trotzdem sagen,wie es mit IE.au3 geht bitte?
armin555 is offline  
Old 12/06/2011, 21:02   #6
 
~.ScoiL's Avatar
 
elite*gold: 70
Join Date: Jul 2011
Posts: 496
Received Thanks: 194
Hier nochmal das Tutorial von Shadow992.
~.ScoiL is offline  
Thanks
1 User
Old 12/06/2011, 21:16   #7
 
elite*gold: 0
Join Date: Aug 2008
Posts: 467
Received Thanks: 30
Habs schon rausbekommen trotzdem vielen Dank!

Kann mir jemand noch sagen,wie ich den Button "Sammeln gehen" drücken kann?
Der hat irgendwie nur einen <input name="Submit2"> - Namen.

Wie kann ich da draufklicken?
armin555 is offline  
Reply

Tags
login, pennergame




All times are GMT +2. The time now is 03:06.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.