20210226 1823
REF
[1] "autohotkey.com/board/topic/54118-auto-increment/" Auto Increment
① basic
i:=1
zStr := i " : 1st comment"
tooltip, %zStr%
sleep, 1000
i++
zStr .= "`n" i " : 2nd comment"
tooltip, %zStr%
sleep, 1000
② loop
This technique can be applied to loop
loop, 10 {
zStr .= "`n" A_index "th comment"
if(A_index=1)
zStr := A_index "th comment"
tooltip, %zStr%
sleep, 1000
}
i:=1
loop, 10 {
zStr .= "`n" i "th comment"
if(i=1)
zStr := i "th comment"
i++
tooltip, %zStr%
sleep, 1000
}
return
'[PA] 업무자동화 > [AH]Autohotkey' 카테고리의 다른 글
AH command line parameter (0) | 2021.03.02 |
---|---|
AH name of this file, itself, me (0) | 2021.02.27 |
AH Keyboard equivalent to Mouse Right Click (0) | 2021.02.27 |
AH select all checkboxes (0) | 2021.02.24 |
AH showing current code line (0) | 2021.02.13 |