WinSetTitle

ウィンドウのタイトルを変更

WinSetTitle, NewTitle
WinSetTitle, WinTitle, WinText, NewTitle [, ExcludeTitle, ExcludeText] 

Parameters

引数名説明
WinTitle ウィンドウタイトルなど。
ウィンドウ指定の方法参照。
WinText ウィンドウに含まれるテキスト
NewTitle 新しいタイトルを指定
ExcludeTitle 除外タイトル
ExcludeText 除外テキスト

Remarks

引き数を一つだけ指定すると、LastFoundWindowのウィンドウが引き数で指定したタイトルになる

Related

WinMove, WinGetActiveStats, WinGetActiveTitle, WinGetText, ControlGetText, WinGetPos, WinSet

Example(s)

WinSetTitle, Untitled - Notepad, , This is a new title
; Alternate:
Run, notepad.exe
WinWaitActive, Untitled - Notepad
WinSetTitle, This is a new title ; Uses the window found above by WinWaitActive