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

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: 请问如何修改Gui窗口的名称?

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

Post by youwantme » 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

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

Post by tmplinshi » 31 May 2015, 12:33

用 WinSetTitle

例如:

Code: Select all

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

GuiClose:
ExitApp

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

Post by youwantme » 30 May 2015, 08:34

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

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

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

感谢!

Top