autohotkey创建gui窗体,按钮

 时间:2026-04-24 04:56:43

1、;例子(总):

Gui, Add, Button, x82 y90 w110 h60 , MyButton                                     

Gui, Show, x127 y87 h379 w479, 窗口名

Return

ButtonMyButton:   

msgbox,我的按钮。

return

GuiClose:

ExitApp

autohotkey创建gui窗体,按钮

2、Gui, Add, Button, x82 y90 w110 h60 , MyButton    

;;MyButton是控件名,同时也控件上出现的文字

;;x横坐标,y纵坐标,w宽,h高

autohotkey创建gui窗体,按钮

3、Gui, Show, x127 y87 h379 w479, 窗口名

;;显示窗体

autohotkey创建gui窗体,按钮

4、ButtonMyButton:

msgbox,我的按钮。

return

;;为按钮执行的内容(效果为:按下按钮,弹出信息框,内容为我的按钮)

autohotkey创建gui窗体,按钮

5、GuiClose:

ExitApp

;;gui窗体关闭时,脚本退出(托盘消失)

autohotkey创建gui窗体,按钮

  • EXCEL中如何将日期设置为中文格式显示
  • Excel数据导入SQLServer数据库方法
  • 如何让两个excel表格分开显示?
  • 方管-焊接方管需要注意的地方
  • Excel中如何设置单元格下拉可选值
  • 热门搜索
    我的寒假我做主手抄报 防新型冠状病毒手抄报 关于节日的手抄报 法制伴我行手抄报 手抄报版面设计图花 消防手抄报资料 中国梦足球梦手抄报 民间故事手抄报 祖国发展我成长手抄报 孝敬父母手抄报内容