Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 23:17

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

Advertisement



Auto Login Hilfe

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

Reply
 
Old   #1
 
elite*gold: 10
Join Date: Aug 2010
Posts: 2,814
Received Thanks: 466
Auto Login Hilfe

Hallo,

Ich bin gerade dabei einen AutoLogin für Diablo 3 zu erstellen.

Zurzeit sieht er so aus:

Code:
HotKeySet ("{F6}", "autologin")

Func autologin ()

WinWaitActive ("Diablo III")

$password = InputBox ("D3 Auto Login", "Bitte Passwort eingeben:")

	MouseClick ("left", 900, 700, 2, 1)
	Send ($password)
	Send ("{Enter}")
	Sleep (6000)
		If PixelGetColor (898, 698) = 3221787
			Then ProcessClose ( "AutoLogin.exe")
			Else MouseClick ("left", 950, 630, 1, 1)
		EndIf
EndFunc

While 1
SLeep (100)
Wend
In Scite wird ja an der linken Seite immer durch einen Strich angezeigt, in welchem Bereich eine Func oder If Struktur benutzt wird.

Der Strich von der Func-Struktur hört allerdings immer schon bei Beginn der If-Struktur auf. Das heißt, wenn ich die Func-Struktur zuklappe sieht der Code so aus:

Code:
HotKeySet ("{F6}", "autologin")

Func autologin ()
			Else MouseClick ("left", 950, 630, 1, 1)
		EndIf
EndFunc

While 1
SLeep (100)
Wend
Jetzt ist meine Frage, warum das so ist und ob das was in meinem zweiten "Code-Zitat" noch angezeigt wird überhaupt noch durch den Hotkey ausgeführt wird. Ist an der If-Struktur etwas falsch?

MfG ExChill
ExChill is offline  
Old 06/06/2012, 14:21   #2
 
elite*gold: 6
Join Date: Mar 2010
Posts: 584
Received Thanks: 81
Ich weiß jetzt nicht ob ich dich ganz verstanden hab aber:
1. Es wird bei mir auch nicht immer ganz perfekt zugeklappt
2. Ausführen kann man es trotzdem da das ganze Script noch da ist, nur eben zugeklappt..
Shrezz is offline  
Thanks
1 User
Old 06/06/2012, 14:27   #3
 
elite*gold: 10
Join Date: Aug 2010
Posts: 2,814
Received Thanks: 466
Gut danke, ich werds gleich erstmal testen.
Habe den Code etwas umgeschrieben, vorher hats einwandfrei funktioniert.

Dann hab ich noch eine Frage. Bisher wird das Programm ja beendet, wenn ein bestimmt Pixel eine bestimmt Farbe hat (also wenn der Einlog-Screen verschwindet).
Kann man das auch irgendwie anders regeln, denn es ist schon etwas umständlich immer die Farbe von einem bestimmten Punkt rauszusuchen.
ExChill is offline  
Reply


Similar Threads Similar Threads
Wie Speichert man die Login daten und macht nen Auto Login
07/15/2010 - Metin2 Private Server - 5 Replies
Souh ma wieder ne "Blöde Frage"... wie speichert man die login daten und macht nen autologin für den client wie es hier gemacht worden ist: http://www.elitepvpers.com/forum/metin2-pserver-dis cussions-questions/616285-my-new-client.html Über ne antwort würde ich mich freuen...
Auto Login Help
07/01/2010 - SRO Private Server - 1 Replies
Hello my friend set up my bot/autologin and stuff last time but since re-installing i have tried every Autologin i can find, None of them seem to work i keep getting this error.. The client you are using is no supported. Would be nice if you could pn me in epvpers or cpg forums with your verson of sro =) I think its a problem with the autologin, Could someone please post a working autologin. One that works with 0.8 version of db bot, I play on ZSZC servers. If not can someone post me the...
[Auto Login] Hilfe beim Builden!
07/18/2009 - AutoIt - 5 Replies
Hey alle zusammen ^^ Also folgendes: Ich hab hier ein selbst geschriebenes Script (Mein erstes wohoo xD), was ein Auto Login ist... Run("C:\Programme\SJSRO\silkroad.exe") Sleep(1000) Run("C:\Dokumente und Einstellungen\Alex\Desktop\SibiPrecincts\SibiPreci ncts.exe") WinActivate("SibiPrecincts")



All times are GMT +1. The time now is 23:17.


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.