Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars
You last visited: Today at 17:05

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

Advertisement



GUI Run (input...)

Discussion on GUI Run (input...) within the Guild Wars forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: Dec 2007
Posts: 795
Received Thanks: 188
Wink GUI Run (input...)

Hallo,

ich mal wieder mit ne Frage. Und zwar habe ich eine Func _path() erstellt welche die Aufgabe hat den user auf zu fordern den Pfad zum GuildWars verzeichniss an zu geben.
Die func klappt auch ohne Probleme, aber ich möchte es halt so das wenn der User dann start drückt das GuildWars startet von dem Verzeichniss aus wo der User sein GuildWars Installiert hat.

Die Func sieht so aus....

func _path()
MsgBox ( 0, "GuildWars Path", "Befor the bot can do autologin you have to insert your path to GuildWars.exe")
$autologinpath = InputBox ( "Path to GuildWars", "Please insert here your path to GW.exe", "C:\Programme\GUILD WARS\Gw.exe" )
EndFunc


das wäre die _path() func

jetzt dachte ich mir halt so das es mit Run geht.... aber iwi kommt nix ausser nen fehler.. hatte es so probiert....

Func _startbot()

$rungw = GUICtrlRead($autologinpath)
Run = ($rungw)

EndFunc

Wäre ne ordentliche lösung weiß wäre cool

Danke schon mal für die antworten zum thema!

mfg
blackWorkx is offline  
Old 05/07/2008, 20:44   #2
 
elite*gold: 0
Join Date: Oct 2005
Posts: 2,485
Received Thanks: 215
Nee kumma, ne InputBox ist ne neue Form. Dann müsstest du einfach Run($autologinpath) machen.
Term!nX is offline  
Old 05/07/2008, 20:59   #3
 
elite*gold: 20
Join Date: Dec 2007
Posts: 795
Received Thanks: 188
Func _startbot()

Run($autologinpath)

EndFunc

Da kommt nurn fehler...

Quote:
Cokumente und EinstellungenBlackSunDesktoptest roomBoneBot v2.0Source-code v4.au3(394,23) : WARNING: : possibly used before declaration.
Run()
~~~~~~~~~~~~~~~~~~~~~~^
Cokumente und EinstellungenBlackSunDesktoptest roomBoneBot v2.0Source-code v4.au3(394,23) : ERROR: : undeclared global variable.
Run()
~~~~~~~~~~~~~~~~~~~~~~^
blackWorkx is offline  
Old 05/07/2008, 22:11   #4
 
elite*gold: 0
Join Date: Oct 2005
Posts: 2,485
Received Thanks: 215
Dann musst du die path variabel global deklarieren. Wenn die in einer Funktion deklariert wird, dann kannst du die nur in dieser Funktion verwenden und nicht in einer anderen.

Code:
global $path

func input()
	$path = InputBox("", "")
EndFunc

func runit()
	run($path)
EndFunc

input()
runit()
Term!nX is offline  
Old 05/08/2008, 12:46   #5
 
elite*gold: 20
Join Date: Dec 2007
Posts: 795
Received Thanks: 188
Ok super danke das klappt nun so wie ich wollte...

Nun noch wie muss das aussehen um es zu speichern?

Habe es so...

IniWrite("gui.dat","inputbox","1",GUICtrlread($pat h))

und das read dat so...

GUICtrlSetData($path, IniRead("gui.dat","inputbox","1","C:\Programme\GUI LD WARS\Gw.exe"))

Leider passiert nüscht das window wird kurz gezeigt.. also die GUI und sofort beendet dann zeigt er im Editor diesn fehler an...

C:\Dokumente und Einstellungen\BlackSun\Desktop\test room\BoneBot v2.0\Source-code v4.au3 (265) : ==> Variable used without being declared.:
GUICtrlSetData($path,IniRead("gui.dat","guildwarsp ath","1","C:\Programme\GUILD WARS\Gw.exe"))
GUICtrlSetData(^ ERROR[/QUOTE]

mfg
blackWorkx is offline  
Old 05/08/2008, 13:05   #6
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,753
Received Thanks: 443
wtf geht bei euch ab?
wie wärs mit

$path = FileOpenDialog("Please select your GW.exe",@workingdir,"GW.exe (Gw.exe)",3)

o0
Azunai is offline  
Old 05/08/2008, 13:34   #7
 
elite*gold: 0
Join Date: Oct 2005
Posts: 2,485
Received Thanks: 215
is natürlich besser, aber es ging halt darum, den denkfehler zu beheben
Term!nX is offline  
Old 05/08/2008, 13:59   #8
 
elite*gold: 20
Join Date: Dec 2007
Posts: 795
Received Thanks: 188
Quote:
= FileOpenDialog("Please select your GW.exe",@workingdir,"GW.exe (Gw.exe)",3)
Das ist auch gut.. nur müsste der User dann ja immer bevor er start drückt die gw.exe auswählen... kann man den pfad da nich specihern so das es mit iniread und so klappt?
blackWorkx is offline  
Old 05/08/2008, 14:09   #9
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,753
Received Thanks: 443
klar o0

$path = iniread("options.dat","bot","path","blanko")

if $path <> "blanko" then $path = FileOpenDialog("Please select your GW.exe",@scriptdir,"GW.exe (Gw.exe)",3)

iniwrite("options.dat","bot","path",$path)
Azunai is offline  
Old 05/08/2008, 14:13   #10
 
elite*gold: 20
Join Date: Dec 2007
Posts: 795
Received Thanks: 188
Na dann danke ich dir .. weitere fragen werden folgen xD

*sorry fals es stresst

mfg
blackWorkx is offline  
Old 05/08/2008, 19:49   #11
 
elite*gold: 0
Join Date: Oct 2005
Posts: 2,485
Received Thanks: 215
Es stresst nicht, da es für den Wissenden keinen Aufwand bedeutet.
Term!nX is offline  
Old 05/08/2008, 20:08   #12
 
Valvepro's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 374
Received Thanks: 198
nenene das geht viel viel einfacher (der autologin)

func autologin()

run(RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\ArenaNet\ Guild Wars", "path")&" -email "&GUICtrlRead($loginmail)&" -password "&GUICtrlRead($loginpw))

sleep(ka wielange..)
send ("{enter}")
sleep(ka wielange..)
EndFunc

Wobei GUICtrlRead($loginmail) die Email einließt und GUICtrlRead($loginpw) eben das Passwort

Hoffe, konnte damit weiterhelfen
Valvepro is offline  
Old 05/08/2008, 20:45   #13
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,753
Received Thanks: 443
hf ^^
ich sag nur

"mammi das ist ein keylogger!!"
Azunai is offline  
Old 05/08/2008, 20:49   #14
 
elite*gold: 0
Join Date: Oct 2005
Posts: 2,485
Received Thanks: 215
bitte w00t o,O
Term!nX is offline  
Old 05/08/2008, 22:11   #15
 
elite*gold: 20
Join Date: Dec 2007
Posts: 795
Received Thanks: 188
Hi danke aber das is doch dann wieder was wo die meisten firewalls diesen befehl btw. die anfrage zulassen müssen oder? Will nähmlich nix haben wo der user noch was in der firewall freigeben muss.
blackWorkx is offline  
Reply


Similar Threads Similar Threads
Input Problem(php)
04/05/2010 - Off Topic - 5 Replies
abend com ich habe eine frage an euch ich habe meine seite mit php gemacht <td><input type="text" name="name" value size="20"><font color="#FF0000" face="Arial"> *Pflichtfeld</font></td> </tr> <tr> <td align="right"><font color="#000000" face="Arial,helvetica" size="-1">Char:</font></td&g t; <td><input type="text" name="ID:" value size="20"><font color="#FF0000" face="Arial"> *Pflichtfeld</font></td> </tr> <td align="right"><font color="#000000" face="Arial,helvetica"...
autoit input
12/15/2009 - AutoIt - 5 Replies
hallo liebe com, ich weiß das klingt dumm aber wollte mal wieder was mit autoit machen, was ja nicht schwer ist aber irgendwie hänge ich. und zwar hier: $Label11 = GUICtrlCreateLabel("Passwort:", 32, 152, 50, 17) $Passwort = GUICtrlCreateInput("Groß- & Kleinschreibung beatchen", 88, 152, 177, 21) jetzt soll er den input bei passwort wiedergeben, aber wie? meine damit einen Send commend ich weiß nur nicht wie ich das schreiben muss, :o sorry für die dumme frage aber stehe auf dem...
Need some input please
07/10/2009 - Dekaron Private Server - 9 Replies
OKay guys i got my client packed but i only have 2 problems: The loading map screen for deathlands is white and blank. also the minimap is blank. At first my mobs were pink but i reinstalled the textures and it fixed it. I reinstallled the files from data/texture/minimap and the loading one in texture/ui/game/loading. Wondering if anyone else might have an idea EDIT:: Its all new maps but they worked fine in unpacked mode same textures and etc ...
hi some input plz?
05/11/2007 - Conquer Online 2 - 0 Replies
i made billions of high lv troj and got used to it, now i played on a new serv and made a lv110 war in 2weeks. however, i am very not used to it cuz cant even ss/fb. i wasthinking of making a new char, or stick with this one rb at 120, or make it 130 130 rb to troj? btw lvling with a sword/blade and shield at lv120 + , would it affect my exp a lot compare to using club shield?
IME Input Tool
06/30/2006 - FFXI Exploits, Hacks, Bots, Tools & Macros - 2 Replies
IME Input Tool..... just click it and it runs Files Included -Windower IME Input 1.0.exe -WindowerHelper.dll (don't know what this is for or what relevance it has) guess it works w/ IME



All times are GMT +2. The time now is 17:05.


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.