es muy sencillo :P pero ami me a sido muy util, haber si a alguien mas le resulta util
Código: Seleccionar todo
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("realmlister", 577, 55, 192, 124)
$realm = GUICtrlCreateInput("", 80, 16, 249, 21)
$Label1 = GUICtrlCreateLabel("set realmlist", 16, 16, 58, 17)
$create = GUICtrlCreateButton("crear", 344, 16, 105, 25, $WS_GROUP)
$oficial = GUICtrlCreateButton("realmlist oficial", 456, 16, 105, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $create
$rlist = GUICtrlRead($realm)
if FileExists("C:\Program Files\world Of Warcraft\Data\esES\realmlist.WTF") Then filedelete("C:\Program Files\orld Of Warcraft\Data\esES\realmlist.WTF")
$realmlist = FileOpen("C:\Program Files\world Of Warcraft\Data\esES\realmlist.WTF",9)
filewrite("C:\Program Files\world Of Warcraft\Data\esES\realmlist.WTF","set realmlist "& $rlist)
FileClose($realmlist)
case $oficial
if FileExists("C:\Program Files\world Of Warcraft\Data\esES\realmlist.WTF") Then filedelete("C:\Program Files\orld Of Warcraft\Data\esES\realmlist.WTF")
$realmlist = FileOpen("C:\Program Files\world Of Warcraft\Data\esES\realmlist.WTF",9)
filewrite("C:\Program Files\world Of Warcraft\Data\esES\realmlist.WTF","set realmlist eu.logon.worldofwarcraft.com"&@CRLF&"set realmlist eu.version.worldofwarcraft.com ")
FileClose($realmlist)
EndSwitch
WEnd