Method Reference (COM)

WinSetTitle

ウィンドウの名前を変更します。

WinSetTitle "title", "text", "newtitle"

 

パラメータ

title 対象となるウィンドウのタイトル
text 対象となるウィンドウのテキスト
newtitle 変更後のウィンドウの名前

 

返し値

なし。

 

注意

もし複数のウィンドウが処理の対象に該当する場合、もっともアクティブなウィンドウの名前が変更されます。

 

関連

WinGetTitle, WinTitleMatchMode (Option)

 

Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
oAutoIt.WinSetTitle "Untitled - ", "", "My New Notepad"