Register for your free account! | Forgot your password?

Go Back   elitepvpers > General > Main
You last visited: Today at 11:15

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

 

AutoIt(GUI)Problem

Reply
 
Old   #1
 
elite*gold: 200
Join Date: Dec 2008
Posts: 1,299
Received Thanks: 170
AutoIt(GUI)Problem

Hallo,
Ich will eine GUI programmieren für meinen P-Server.
Das Script sieht so aus:
Code:
#include <GUIConstants.au3>

GUICreate("Nakroma´s Privat Server Client", 500, 150)

GUICtrlCreateLabel("Bitte wähle eine Aktion aus!", 30, 10)
$ndjoin = GUICtrlCreateButton("Privat Server Join", 20, 50, 180)
$blizzjoin = GUICtrlCreateButton("Blizzard Join", 20, 100, 180)
$account = GUICtrlCreateButton("Account erstellen", 300, 50, 180)
$homepage = GUICtrlCreateButton("Zur Homepage", 300, 100, 180)
GUISetState(@SW_SHOW)

While 1
  $msg = GUIGetMsg()

  Select
    Case $msg = $ndjoin
      #include <File.au3>
      _FileWriteToLine ( 'C:/Programme/World of Warcraft/Date/DeDE/realmlist.txt', 1, 'set realmlist ', 1 ); DEINEREALMLIST=Serverrealmlist einsetzen
	  _FileWriteToLine ( 'C:/Programme/World of Warcraft/Date/DeDE/realmlist.txt', 2, 'REALMLIST', 1 );
	  _FileWriteToLine ( 'C:/Programme/World of Warcraft/Date/deDE/realmlist.txt', 3, '', 1 );
	  _FileWriteToLine ( 'C:/Programme/World of Warcraft/Date/DeDE/realmlist.txt', 4, '', 1 );
	  Run ("C:/Programme/World of Warcraft/World of Warcraft.exe")
	  ExitLoop
	  
	Case $msg = $blizzjoin
	#include <File.au3>
      _FileWriteToLine ( 'C:/Programme/World of Warcraft/Date/DeDE/realmlist.txt', 1, 'set realmlist eu.logon.worldofwarcraft.com', 1 ); DEINEREALMLIST=Serverrealmlist einsetzen
	  _FileWriteToLine ( 'C:/Programme/World of Warcraft/Date/DeDE/realmlist.txt', 2, 'set patchlist eu.version.worldofwarcraft.com', 1 );
	  _FileWriteToLine ( 'C:/Programme/World of Warcraft/Date/DeDE/realmlist.txt', 3, 'set realmlistbn ""', 1 );
	  _FileWriteToLine ( 'C:/Programme/World of Warcraft/Date/DeDE/realmlist.txt', 4, 'set portal eu', 1 );
	  Run ("C:/Programme/World of Warcraft/World of Warcraft.exe")
	  ExitLoop
	
	Case $msg = $account
	ShellExecute('http://accountpage.de')
	
	Case $msg = $homepage
	ShellExecute('http://homepage.de')
	
	Case $msg = $GUI_EVENT_CLOSE
      MsgBox(0, "Client Message", "Client wird beendet!")
      ExitLoop

    
  EndSelect
WEnd
Und ich habe ein Einstellungsmenü gemacht.
Code:
#include <GUIConstants.au3>

GUICreate("Nakroma´s Einstellungsmenü", 500, 150)
$realmlistinput = GUICtrlCreateInput("P-Server Realmlist", 20, 20, 100)
$realmlistbutton = GUICtrlCreateButton("OK", 140, 20, 80)
$accountinput = GUICtrlCreateInput("Account-Page", 20, 100, 100)
$accountbutton = GUICtrlCreateButton("OK(Mit Http)", 140, 100, 80)
$homepageinput = GUICtrlCreateInput("Homepage", 200, 60, 100)
$homepagebutton = GUICtrlCreateButton("OK(Mit Http)", 320, 60, 80)

GUISetState(@SW_SHOW)


While 1
  $msg = GUIGetMsg()

  Select
  Case $msg = $realmlistbutton
	  $realmlist = GUICtrlRead($realmlistinput)
	  send ($realmlist)
      MsgBox(0, "Lol", $realmlist)

    Case $msg = $accountbutton
		$account = GUICtrlRead($accountinput)
		send ($account)
		MsgBox(0, "LOl", $account)
	
Case $msg = $homepagebutton
	$homepage = GUICtrlRead($homepageinput)
	Send ($homepage)
	MsgBox(0, "Lol", $homepage)
	
	Case $msg = $GUI_EVENT_CLOSE
      MsgBox(0, "Message", "Programm wird beendet!")
      ExitLoop
  EndSelect
WEnd
Meine Frage: Wie kann ich mit dem Einsteller die Realmlist, Accountpage und die Homepage überschreiben.
Quasi:
Code:
	  _FileWriteToLine ( 'C:/Programme/World of Warcraft/Date/DeDE/realmlist.txt', 2, 'REALMLIST', 1 );
Und REALMLIST wird durch $realmlist im Einsteller ersetzt.
Vielen Dank für Alle Antworten im Voraus.
MfG
Nakroma



Nakroma is offline  
Old   #2
 
elite*gold: 0
Join Date: Jul 2010
Posts: 32
Received Thanks: 3
Mal anklicken vielleicht interesierts euch


acer1993 is offline  
Old   #3
 
elite*gold: 0
Join Date: Mar 2010
Posts: 188
Received Thanks: 80
Poste es einfach in der Gamehacking Sektion unter AutoIt
Bekommst mehr rat
BloodlyKnife is offline  
Old   #4
 
elite*gold: 200
Join Date: Dec 2008
Posts: 1,299
Received Thanks: 170
Okey, Danke
Nakroma is offline  
Reply



« Previous Thread | Next Thread »



All times are GMT +1. The time now is 11:15.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.