20200329 1546
01 예제 먼저 보자
#SingleInstance, Force #Persistent zProcessFunc(zMsg:="Time Passed:"){ static zBegTime zx:=150 ; need to move window zy:=130 ; need to move window zBegTime:=A_TickCount ;, sec:=seconds, step:=1000/sec zElapsedTime:=Round((A_TickCount-zBegTime)/1000,0) Progress, W150 H130 zH10 FM10 FS18 CTFF0000, %zElapsedTime%, %zMsg%, zProcess, WinMove, zProcess, ,A_ScreenWidth - zx, A_ScreenHeight - zy SetTimer, update, 100 return
update: zElapsedTime:=Round((A_TickCount-zBegTime)/1000,0) progress,%zElapsedTime%,%zElapsedTime% return }
zProcessFunc()
;MAIN CODE HERE
ExitApp ESC::ExitApp |
02 Persistent는 코드 가장 위에 써야하나
참고 = “https://autohotkey.com/board/topic/49365-please-explain-the-workings-of-persistent-to-me/”
03 자동실행섹션
The Top of the Script (the Auto-execute Section)
After the script has been loaded, it begins executing at the top line, continuing until a Return, Exit, hotkey/hotstring label, or the physical end of the script is encountered (whichever comes first). This top portion of the script is referred to as the auto-execute section.
★ 코드의 처음부터 X지점까지를 Auto-execute section이라고 한다, where X지점 means return, Exit, hotkey, hotstring이 있는 곳
'[PA] 업무자동화 > [AH]Autohotkey' 카테고리의 다른 글
AH 정리하세요 (0) | 2020.03.29 |
---|---|
AH 하나의 명령을 두 줄에 쓰기 (0) | 2020.03.29 |
AH 화면설정 정보 얻기 (0) | 2020.03.29 |
AH SciTE4 사용법 (0) | 2020.03.29 |
AH PY와 AH의 결합 (0) | 2020.03.29 |