Alt ! Win # Ctrl ^ Shift +
Keyboard text
:*:ds]:: 안녕하세요
:*:rt]:: 감사합니다
ws := "2503 1313" ; Variables
click ws
N := Random(2222, 3333)
sleep N
Send "{LWin Down} {1} {lwin up}"
Send "#z"
^t::
SendInput "{LButton}" . FormatTime(,"HH:mm:ss") ; 커서 클릭 시간
Send A_YYYY "년 " a_mm "월 " A_dd "일 "
^t:: ; time
{
Send A_YYYY "년 " a_mm "월 " A_dd "일 "
}
~a & d:: ; a + d
f1::f1 ; f1 고유기능 사용 - 예외처리
Mouse
CoordMode "Mouse", "Screen"
SetDefaultMouseSpeed 0 ; default 2
MouseGetPos &x , &y
Click 100, 200, 2 ; x y 2 clicks
Click "2401 999 r" ; 0 move / L R wu wd
MouseClickDrag "left", 2321, 855 , 2105, 1147 ; xy xy2 speed
MouseMove x,y
F8:: { MouseGetPos &x , &y
A_Clipboard := "click " . x . ", " . y . " `n" . "sleep 155 `n"
A_Clipboard := "click `"" . x . " " . y . "`" `n" . "sleep 155 `n"
Send("^v")
}
asci code ` ; " 따음 / n 뉴라인 / r 리턴 등
반복
f8:: ; loop till / key toggle
{ loop {
if GetKeyState("\", "t")
break ; exit reload 대체 가능
send("1")
Sleep 333
TrayTip A_Index " 현재 반복 중입니다. "
ToolTip "반복 " A_Index
} }
\::reload ; 반복 중단 - app 새로고침 - 간결함 추천
f9::ExitApp
반복 다운로드
#HotIf WinActive("ahk_exe msedge.exe")
~LAlt & ]::
{ Loop 28
{ click 1795, A_Index * 55 + 255
sleep 200
}}
#HotIf ; To turn off context sensitivity
윈도우
#HotIf WinActive("ahk_exe msedge.exe") or ... ; 활성 윈도우 동작
#HotIf ; To turn off context sensitivity, specify #HotIf without any expression.
if WinExist("ahk_exe msedge.exe") or ... ; 창 닫기 or winkill
WinClose ; Use the window found by WinExist
GroupAdd "f1", "ahk_exe explorer.exe" ; 그룹 선언
GroupAdd "f1", "ahk_exe msedge.exe"
#HotIf WinActive("ahk_group f1")
Run "D:\Data.exe" ; run
Clipboard 파일
::/ur:: ; /ur 입력시 ur.txt 불러오기
{ A_Clipboard := FileRead("D:\Work\Doc\_code\ahk\ur.txt")
Send '^v'
}
FileAppend "Another line.`n", "D:\Work\Doc\_code\ahk\ur.txt" ; 파일 쓰기
FileAppend A_Clipboard , "D:\Data\Utility\Essential\Text\Notepad++\new1.txt"
A_Clipboard := "click `"" . x . " " . y . "`" `n" . "sleep 55 `n" ; `n `t `"
TraySetIcon "D:\Data\Utility\_Install_Apps\Theme\Icons\su_con (1).ico"
TraySetIcon "imageres.dll", 77
TraySetIcon "Shell32.dll", 111
https://www.autohotkey.com/docs/v2/