Code: Select all
#SingleInstance force
global Gui
Gui:=GuiCreate("+AlwaysOnTop","Window")
Gui.SetFont(,"微软雅黑")
Gui.Add("Edit","x0 y0 w200 h100")
Gui.OnEvent("Size", "Change") ;用户调整窗口大小
Gui.Show("AutoSize")
Change(Gui,MinMax,Width,Height)
{
MsgBox MinMax "`n" Width "`n" Height
}