Page 1 of 1

请问如何修改Gui窗口的名称?

Posted: 30 May 2015, 08:34
by youwantme
Gui, New,,初始标题
Gui,Show,,初始标题

我找了半天,发现只有在创建窗口时,在New或Show的时候指定Gui窗口标题名称,但没找到后期修改Gui窗口标题的方法。

请教大神,怎样才能在后期修改Gui的窗口标题呢?

感谢!

Re: 请问如何修改Gui窗口的名称?

Posted: 31 May 2015, 12:33
by tmplinshi
用 WinSetTitle

例如:

Code: Select all

Gui, +HwndHGUI
Gui, Show, w500 h500, 初始标题
WinSetTitle, ahk_id %HGUI%,, NewTitle
Return

GuiClose:
ExitApp

Re: 请问如何修改Gui窗口的名称?

Posted: 31 May 2015, 20:35
by youwantme
感谢!
tmplinshi wrote:用 WinSetTitle

例如:

Code: Select all

Gui, +HwndHGUI
Gui, Show, w500 h500, 初始标题
WinSetTitle, ahk_id %HGUI%,, NewTitle
Return

GuiClose:
ExitApp