[auto hot key]通过GUI触发功能

; ym 可以 y轴换列,有点类似float:left ,而 xm可以换行,有点类似clear:both
Gui, Add, Button, gFunctionA Default, FunctionA
Gui, Add, Button, gFunctionB Default ym, FunctionB

GuiEscape:
GuiClose:
    Gui,Hide
return

;触发按钮
!space::
    Gui, Show,AutoSize, Simple Input Example
return

FunctionA:
    MsgBox AA
return

FunctionB:
    MsgBox BB
return

效果预览:
image

posted @ 2023-03-06 13:05  DwightValentine  阅读(16)  评论(0)    收藏  举报