Hallo Leute,
Und zwar brauch ich mal eure Hilfe.
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$wowpath = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\World of Warcraft', 'Installpath')
$Account = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\World of Warcraft', "Accountname")
$Password = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\World of Warcraft', "Password")
$wowexe = $wowpath & "\wow.exe"
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Rubberducky´s WoW-Launcher", 623, 396, 192, 124)
GUISetBkColor(0x000000)
$Header = GUICtrlCreateLabel("Rubberducky´s World of Warcraft Launcher", 72, 24, 501, 33)
GUICtrlSetFont(-1, 18, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x800000)
$Label_Accountname = GUICtrlCreateLabel("Accountname:", 56, 152, 119, 24)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
$Label_Password = GUICtrlCreateLabel("Password:", 86, 196, 86, 24)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
$Youraccoount = GUICtrlCreateInput($Account, 192, 152, 217, 21)
$Yourpassword = GUICtrlCreateInput($Password, 191, 200, 217, 21)
$StartandLogin = GUICtrlCreateButton("Start & Login", 16, 272, 137, 33, 0)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x000080)
$Onlylogin = GUICtrlCreateButton("Login only", 160, 272, 145, 33, 0)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x000080)
$Exit = GUICtrlCreateButton("Exit", 313, 273, 145, 33, 0)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x000080)
$Version = GUICtrlCreateLabel("Version 1.0", 540, 350, 305, 17)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
$Copyright = GUICtrlCreateLabel("© by Rubberducky @ UWC. All rights reserved. 2009", 304, 368, 305, 17)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
$UWC = GUICtrlCreateButton("Visit UWC", 465, 272, 145, 33, 0)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x000080)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
HotKeySet("{NUMPAD1}", "Login")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Exit
Exit
Case $Startandlogin
ShellExecute($wowexe)
WinActivate("World of Warcraft")
Func Login()
Send("{LCTRL}")
Send("{A}")
Send("{BS}")
Send($Account)
Send("{TAB}")
Send($Password)
Send("{ENTER}")
Exit
EndFunc
Case $Onlylogin
WinActivate("World of Warcraft")
Case $UWC
shellexecute("www.uwcrew.eu")
EndSwitch
WEnd
1. Ich würde gerne in diesen Launcher die RegWrite ersetzen durch eine Funktion, bei der Autoit eine Datei an Pfad xyz (vorher definiert) erstellt und dort Zeilen reinschreibt, die ich dann auch angebe.
2. Ich würde gerne eine Art SwitchMode machen. Sprich: Wer 2 Versionen (2.4.3 und 3.0.9) hat, soll die Möglichkeit haben, zwischen den beiden .exe Dateien herumzuswitchen. Dabei soll vorher per InputBox beide Exe Pfade angegeben werden. Auch diese sollen dann in die Datei.
Wie geht sowas?
Rubberducky