ahk2 gui 시작 등록

2024. 4. 17. 07:46·🧩 Code

 

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

 

저작자표시 비영리 변경금지 (새창열림)
'🧩 Code' 카테고리의 다른 글
  • ahk2 code
  • cmd code
  • python code
  • vscode 단축키
천하나
천하나
천천히 하나씩 개미천사
  • 천하나
    개미천사
    천하나
  • 전체
    오늘
    어제
    • 전체글 (360) N
      • 🖥️ 정보 (310) N
      • 💴 경제 (32)
      • 🧩 Code (7)
      • 🍺 대화 (11)
      • 🌴 v47 (0)
  • 블로그 메뉴

    • 방명록
  • 링크

    • 관리
    • 행천
  • 공지사항

    • 지금 행복하기
  • 인기 글

  • 태그

    VSCode
    해상도
    web
    driver
    투자마인드
    CODE
    edge google
    신발
    절대경로
    BLUETOOTH
    인생방향 행복
    걷기
    sfc dism
    CSS
    절전모드
    VHD
    dns
    Diskpart
    VMware
    쇼핑
  • hELLO· Designed By정상우.v4.10.3
천하나
ahk2 gui 시작 등록
상단으로

티스토리툴바