simple gui
#Requires AutoHotkey v2.0
#SingleInstance Force
CoordMode "Mouse", "Screen"
SetDefaultMouseSpeed 0
MyGui := Gui(, "test")
MyGui.BackColor := "ac9393"
MyGui.Opt("AlwaysOnTop ToolWindow -SysMenu +Owner ") ; +Owner avoids a taskbar
MyGui.Add("Button", "x10 y10 w70 h25" , "1 war ").OnEvent("Click", n1)
MyGui.Add("Picture", "x80 y70 w60 h20", "img\F1.png").OnEvent("Click", n32)
MyGui.Show("NoActivate x1680 y600 w240 h260")
myGui.OnEvent('Close', (*) => ExitApp())
^f:: nff
n1(*)
{
MouseGetPos &x, &y
click 2364, 1378 , 2
sleep 155
MouseMove x, y
}
gui show hide
+F3::ToggleGuiVisibility()
ToggleGuiVisibility() {
static isVisible := false
isVisible := !isVisible
if (isVisible)
MyGui.Show()
else
MyGui.Hide()
}
시작 등록
schtasks /create /tn "_su\ct" /tr "D:\Work\Doc\_code\ahk\ct.ahk" /sc onlogon /rl highest /delay 0000:05
https://github.com/samfisherirl/Easy-Auto-GUI-for-AHK-v2