window renamer

01/10/2010 12:49 illuminati™#1
Hallo,

vor einiger zeit hat hier mal wer einen window renamer gepostet also wo man ein Fenster umbenennen kann.

Ich find grad das thema nicht mehr. Hat es noch wer parat oder einen ersatz


danke
01/10/2010 13:06 Syc0n#2
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)
01/10/2010 13:06 buFFy!#3
#moved
01/10/2010 13:59 illuminati™#4
danke geht des dann auch für andere nicht gw fenster oder
01/10/2010 14:03 Garry goes Sheep#5
Du wirst es beim Programmieren mal schwer haben, wenn du dort auch keine Satzzeichen verwendest.

Edit: Lol...Wahnsinns Begründung. Wie lange brauchst du für ein Komma? Ne Minute?
01/10/2010 14:48 illuminati™#6
ich weiß, du hast recht aber es musste schnell hingeklatscht werden.