반응형
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- EnvSet
- EnvDiv
- 함수
- IfWinExist
- SetKeyDelay
- DetectHiddenWindows
- Blocks
- ControlGetText
- Threads
- StringGetPos
- autohotkey
- API
- SetTitleMatchMode
- SetEnv
- if
- EnvSub
- if(식)
- EnvMult
- SetMouseDelay
- Var:=식
- SetControlDelay
- IF (식)
- Menu
- IfInString
- 식
- ControlSend
- 식의 설명
- 배열
- MouseClick
- EnvAdd
Archives
- Today
- Total
ㄴrㅎnㅂrㄹrㄱi
Script & Hotkey Performance 본문
반응형
Script & Hotkey Performance
Scripts are semi-compiled while they're being loaded and syntax-checked. In addition to reducing the memory consumed by the script, this process also enhances runtime performance (by orders of magnitude in some cases). The performance boost is greatest when SetBatchLines is -1, meaning that the script is running at maximum speed.
In addition to SetBatchLines, the following commands may also affect performance depending on the nature of the script: SetKeyDelay, SetMouseDelay, SetWinDelay, SetControlDelay, and SetDefaultMouseSpeed.
Here are the technical details of the semi-compiling process:
- Input and output variables (when their names don't contain references to other variables) and group names are resolved to memory addresses.
- Loops, blocks, IFs, and ELSEs are given the memory addresses of their related jump-points in the script.
- The destination of each Hotkey, Gosub, and Goto is resolved to a memory address unless it's a variable.
- Command names are replaced with their addresses in a jump table.
- Each line is parsed into a list of parameters.
- Each parameter is parsed into a list of variable references (if any).
- Each variable reference is resolved to a memory address.
반응형
'AUTOHOTKEY > 레퍼런스' 카테고리의 다른 글
|| 연산자(논리합) 개의 식의 논리합의 진위치를 돌려주는 연산자 (0) | 2007.11.08 |
---|---|
WinMenuSelectItem (지정 윈도우의 도구모음의 커멘드를 실행한다) (0) | 2007.11.08 |
색 지정 (0) | 2007.11.08 |
CLSID일람 (0) | 2007.11.08 |
Automating Winamp (0) | 2007.11.08 |
Comments