tech

21/08/07 AutoHotKey : Loop

tech-lover 2021. 8. 7. 09:30

https://ahkplant.tistory.com/226

 

AutoHotKey(오토핫키) 설명서 Loop

→ AutoHotkey(을)를 유행시키는 페이지 → 레퍼런스 → Loop Loop 커멘드 혹은 블록을 지정 회수 혹은break등이 실행될 때까지 반복한다 Loop [, Count] Parameters 인수명 설명 Count 반복의 회수. 생략 했을 경

ahkplant.tistory.com

```

Loop3

{

    MsgBox, Iteration number is %A_Index%.  ; A_Index will be 1, 2, then 3

    Sleep100

}

 

Loop

{

    if A_index > 25

        break  ; Terminate the loop

    if A_index < 20

        continue ; Skip the below and start a new iteration

    MsgBoxa_index = %a_index% ; This will display only the numbers 20 through 25

}

```