autohotkey创建简单的gui窗体,按钮
工具/原料
autohotkey
方法/步骤
1
;例子(总):Gui, Add, Button, x82 y90 w110 h60 , MyButton Gui, Show, x127 y87 h379 w479, 窗口名ReturnButtonMyButton: msgbox,我的按钮。returnGuiClose:ExitApp
2
Gui, Add, Button, x82 y90 w110 h60 , MyButton ;;MyButton是控件名,同时也控件上出现的文字;;x横坐标,y纵坐标,w宽,h高
3
Gui, Show, x127 y87 h379 w479, 窗口名;;显示窗体
5
GuiClose:ExitApp;;gui窗体关闭时,脚本退出(托盘消失)
注意事项
按钮的名字可以是中文。