[PA] 업무자동화/[AH]Autohotkey

AH cumulating tooltip message 툴팁 메세지 늘어나도록

Weneedu 2021. 2. 27. 08:31

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