/* AHK V2 king */ global progress1 Gui := GuiCreate() Gui.Title:="" progress1:=Gui.Add("Progress", "x16 y8 w310 h20 ") ; 进度条初始值默认为0 progress1.value:=20 Gui.Add("Button", "x336 y8 w25 h20", ">").OnEvent("Click","Navigate") Gui.Show Navigate(){ progress1.value:=0 Sleep 3000 while(progress1.value<100) { progress1.value+=20 Sleep 2000 } }
好像无法运行,是不是缺少 GuiCreate()函数的定义