Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars
You last visited: Today at 10:04

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

Advertisement



[AutoIT] Auto Login mit Checkbox

Discussion on [AutoIT] Auto Login mit Checkbox within the Guild Wars forum part of the MMORPGs category.

Reply
 
Old   #1
 
blauwiggle's Avatar
 
elite*gold: 0
The Black Market: 123/0/1
Join Date: Apr 2006
Posts: 1,722
Received Thanks: 476
Question [AutoIT] Auto Login mit Checkbox

Hallo,

ich habe ein neues Problem. Da ich BlackWorkX nicht immer nerven mag, schreibe ich es hier ^^

Ich habe eine GUI mit der Möglichkeit, einen Auto Login zu nehmen. Nun habe ich das Problem, dass wenn ich die Checkbox deaktiviere, dass das Programm Guild Wars dennoch startet und versucht sich einzuloggen.

Code:
$STATE = GUICtrlRead($login)
If $STATE == 1 Then
	$login = True
Else
	$login = False
EndIf



While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $end
			_exitit()
		Case $start
			_start()
		Case $save
			_saveini()
	EndSwitch
WEnd



Func _login()
	run(RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\ArenaNet\Guild Wars", "path"))
	Sleep(5000)
		If Not WinActivate("Guild Wars") Then
			WinActivate("Guild Wars")
		EndIf
	MouseClick("left", 105, 280) ; E-Mail Feld
	Sleep(2000)
	; E-Mail
	$email_login = GuiCtrlRead($email)
	Send($email_login, 1)
	Sleep(1000)
	Send("{TAB}") ; Sprung zum Passwort Feld
	Sleep(1000)
	; Passwort
	$password_login = GuiCtrlRead($password)
	Send($password_login, 1)
	Sleep(2000)
	MouseClick("left", 430, 336) ; Einloggen Button
	Sleep(5000)
	MouseClick("left", 660, 745) ; Spielen Button
	Sleep(10000)
EndFunc



Func _start()
	If $login == True Then
		_login()
		_cxb()
	Else
		_cxb()
	EndIf
EndFunc


Func _cxb()
While 1
  For $runstotal = 1 to 10
   _wayout()
   _fight();
  Next
   _storage()
   _trader();
WEnd
EndFunc
Ich hoffe, dass mir jemand die Lösung verraten kann und die entsprechenden Stellen markiert bzw. ersetzt.
blauwiggle is offline  
Old 07/08/2008, 16:12   #2
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,753
Received Thanks: 443
in dem part finde ich keinen fehler

liegt wohl in der cbx function

bzw probier doch mal

If GUICtrlRead($login) = 4 Then
$login = false
Else
$login = true
EndIf
Azunai is offline  
Old 07/08/2008, 19:52   #3
 
blauwiggle's Avatar
 
elite*gold: 0
The Black Market: 123/0/1
Join Date: Apr 2006
Posts: 1,722
Received Thanks: 476
Question

Problem wurde gelöst. Nun habe ich noch ein anderes. Meine Variablen werden nicht mehr erkannt. Ich hatte das früher immer so:

Code:
$hm_button_x = 1105
$hm_button_y = 55

$gh_button_x = 360
$gh_button_y = 70

$resign_x = 650
$resign_y = 540
usw. ...
Jetzt kommt als Fehler:

Code:
Variable used without being declared.:
MouseClick("left", $hm_button_x, $hm_button_y)
MouseClick("left", ^ ERROR
Irgendwie muss ich die nun deklarieren, soviel geht mir aus dem Text hervor.
blauwiggle is offline  
Old 07/08/2008, 20:20   #4
 
MasteR GunneR's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 387
Received Thanks: 188
setz "Global" davor. Sollte das Problem beheben ;)
MasteR GunneR is offline  
Old 07/08/2008, 20:30   #5
 
Tyon's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 1,440
Received Thanks: 525
Hat Catalysm folgendes weg editiert oder habe ich mich irgendwie verlesen?
Dachte er hätte es mit Dim und Global probiert.
Tyon is offline  
Old 07/08/2008, 20:33   #6
 
blauwiggle's Avatar
 
elite*gold: 0
The Black Market: 123/0/1
Join Date: Apr 2006
Posts: 1,722
Received Thanks: 476
habe es weg editiert ... ich versuche es jedoch nochmal

*EDIT: Problem gelöst, mir viel eben ein (aus dem DV-Unterricht), dass ich die Variablen ganz oben deklarieren muss und nicht irgendwo im Code -.-
blauwiggle 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...
[AUtoIt] Checkbox funzt nicht?!
06/24/2010 - AutoIt - 9 Replies
habe hier mal einen Spambot geschrieben... (ist noch nicht fertig) nur leider funktionieren die checkboxen nicht , bis auf die erste... HotKeySet("{ESC}", "_exit") #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $GUI_GlobalSpam = GUICreate("GlobalSpam Info", 536, 309, 398, 153) $GUI_Spam1 = GUICtrlCreateInput("Was soll GlobalSpam als erstes spamen?", 24, 96, 321, 21)
A AutoIt scipt for auto login after dc? :O
11/16/2008 - Silkroad Online - 14 Replies
Since I like many others don't have a perfect connection I came up with the conclusion that many botters will need this. A AutoIt, or something else like it, Script that will 1. close your client after Dc, restart bot and nuconnector etc, then start the SRO with a autologin. Anyone want to help me with this? :confused::confused: It's all just so frustrating when my internet cuts out for 10 seconds, and a whole nights botting is out the window :(
AutoIT - Transparente Checkbox
07/19/2007 - General Coding - 2 Replies
-



All times are GMT +2. The time now is 10:04.


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.