Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
$FORM_RENAMER = GUICreate("GW Renamer", 210, 190, 193, 125)
$PIC1 = GUICtrlCreatePic("Pics\10.jpg", 0, -5, 210, 190, BitOR($SS_NOTIFY, $WS_GROUP))
GUICtrlSetState($PIC1, $GUI_DISABLE)
$INPUT1 = GUICtrlCreateInput("Guild Wars", 16, 64, 177, 21)
GUICtrlSetFont(-1, 10, 800, 0, "Arial")
$INPUT2 = GUICtrlCreateInput("", 16, 128, 177, 21)
GUICtrlSetFont(-1, 10, 800, 0, "Arial")
$LABEL1 = GUICtrlCreateLabel("Your New GW-Window", 16, 104, 115, 17)
$LABEL2 = GUICtrlCreateLabel("Your Actual GW-Window", 16, 40, 122, 17)
$RENAME = GUICtrlCreateButton("Rename", 40, 160, 121, 25, 0)
GUISetState(@SW_SHOW)
#endregion GUI-Functions
While 1
$NMSG = GUIGetMsg()
Switch $NMSG
Case $GUI_EVENT_CLOSE
ExitLoop
Case $RENAME
If GUICtrlRead($INPUT2) = "" Then
MsgBox(16, "Error", "Invalid GW-Name")
Else
ControlSetText(GUICtrlRead($INPUT1), "", "", GUICtrlRead($INPUT2))
GUICtrlSetData($INPUT1, GUICtrlRead($INPUT2))
EndIf
EndSwitch
WEnd
GUIDelete($FORM_RENAMER)