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

遇到了问题?请先进行搜索(中文和英文),然后在此提问

Moderators: arcticir, tmplinshi

youwantme
Posts: 47
Joined: 11 May 2015, 21:27

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

30 May 2015, 08:34

Gui, New,,初始标题
Gui,Show,,初始标题

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

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

感谢!
tmplinshi
Posts: 1554
Joined: 01 Oct 2013, 14:57

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

31 May 2015, 12:33

用 WinSetTitle

例如:

Code: Select all

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

GuiClose:
ExitApp
youwantme
Posts: 47
Joined: 11 May 2015, 21:27

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

31 May 2015, 20:35

感谢!
tmplinshi wrote:用 WinSetTitle

例如:

Code: Select all

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

GuiClose:
ExitApp

Return to “请求帮助”

Who is online

Users browsing this forum: No registered users and 15 guests