Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 02:15

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

Advertisement



Problem mit Login Script

Discussion on Problem mit Login Script within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
LiiiKeYou's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 62
Received Thanks: 13
Question Problem mit Login Script

Hallo.
Ich hab jetzt ein Problem mit meinen Login Scirpt.
Hier ist der Source:

Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Login#", 264, 305, 192, 124)
$Button1 = GUICtrlCreateButton("Login", 16, 208, 225, 41, $WS_GROUP)
$id = GUICtrlCreateInput("", 24, 72, 209, 21)
$Label1 = GUICtrlCreateLabel("Benutzername", 88, 40, 72, 17)
$Label2 = GUICtrlCreateLabel("Passwort", 104, 112, 47, 17)
$pw = GUICtrlCreateInput("", 24, 144, 209, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
			Case $Button1
If $id = "test" and $pw = "test" Then
	MsgBox (64,"Erfolgreich", "Sie wurden erfolgreich eingeloggt!")
Else
	MsgBox (64, "Fehlgeschlagen", "Sie haben die falschen Daten eingegeben!")
	EndIf
	EndSwitch
WEnd
Wenn ich aber nun die richtigen Daten, nämlich test als id & test als passwort eingebe kommt die Fehlermeldung, also ,,Sie haben die Daten falsch eingegeben!"
Was mache ich falsch? ôo
Kann mir einer helfen?

Danke im Vorraus!
LiiiKeYou is offline  
Old 06/26/2011, 21:37   #2
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
du musst die guicontrols per guictrlread oder controlgettext auslesen.

in den variablen wird bei der erstellung des controls lediglich das handle des controls gespeichert.
lolkop is offline  
Thanks
1 User
Old 06/26/2011, 22:19   #3



 
xShizoidx's Avatar
 
elite*gold: 0
The Black Market: 283/0/0
Join Date: Feb 2011
Posts: 1,351
Received Thanks: 410
Blubb

Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Login#", 264, 305, 192, 124)
$Button1 = GUICtrlCreateButton("Login", 16, 208, 225, 41, $WS_GROUP)
$id = GUICtrlCreateInput("", 24, 72, 209, 21)
$Label1 = GUICtrlCreateLabel("Benutzername", 88, 40, 72, 17)
$Label2 = GUICtrlCreateLabel("Passwort", 104, 112, 47, 17)
$pw = GUICtrlCreateInput("", 24, 144, 209, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
			Case $Button1
If GUICtrlRead($id) = "test" and GUICtrlRead($pw) = "test" Then
	MsgBox (64,"Erfolgreich", "Sie wurden erfolgreich eingeloggt!")
Else
	MsgBox (64, "Fehlgeschlagen", "Sie haben die falschen Daten eingegeben!")
	EndIf
	EndSwitch
WEnd
Bitte schön.
xShizoidx is offline  
Thanks
1 User
Old 06/27/2011, 14:51   #4
 
LiiiKeYou's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 62
Received Thanks: 13
Dankeschön.
Hat geklappt <3
LiiiKeYou is offline  
Reply


Similar Threads Similar Threads
PHP Login script!!! HELP!!!
02/21/2011 - Web Development - 19 Replies
hallo, Also ich habe mal ein PHP Login Script gecoddet und nun also wenn ich mich einlogge auf der login seite komme ich immer weiter auf die seite wo das passwort überprüft wird nur das dumme das passwort wird nicht überprüft.Würde hilfe brauchen Scripts folgen. <?php $username = $_POST; $password = $_POST; if ($username&&password)
[AutoIt] Problem: Non-Script-Login überwinden (für Browsergamebot)
02/10/2011 - AutoIt - 3 Replies
Hallo epvp*coders, ich will einen kleinen IE-Bot für das Browsergame Die Stämme schreiben. Mein Bot fügt Benutzername und Passwort in die Inputs ein und betätigt den Login-Button. Jetzt soll ein vorher angegebene Server ausgewählt werden. (z.B.: de61) *g* Leider scheitere ich an diesem "non_script_login": <div id="non_script_login"> <label for="server_select" id="server_select_label"> <strong >Welt:</strong> <select id="server_select"...
Login script für homepage
09/18/2010 - Metin2 Private Server - 9 Replies
Gibt es irg wo ein tutorial, für einen login script ? Habe leider nichts gefunden. Vieleicht kann mir ja jemand behilflich sein. mfg
[PHP]Login Script[HELP]
03/26/2008 - EO PServer Hosting - 0 Replies
Hello veryone im currently making a website everything is working except the login, Basicly the site has a login page where the user can check his stats and send messages and login into sever but the script won't seem to work after i updated the register script because the old one it wud not let u login into the server so if ur good and would help me plz pm me or add me on [email protected] Thanks
Help with autoit login script
03/16/2008 - Cabal Online - 7 Replies
I was wondering if there was a script to do the image verification when you login or to somehow bypass this screen.



All times are GMT +1. The time now is 02:16.


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.