Need help with loops

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
LaGOm
Posts: 1
Joined: 08 Jun 2016, 06:38

Need help with loops

08 Jun 2016, 06:44

Hi!
Is it possible to increase a value after every loop.
ex:
j::
Loop {
Send, {d Down}
Sleep, 1000
Send, {d Up}
}
Is there a way to increase the pause with 1000 between each loop?
AllUrBaseRBelong2Us
Posts: 35
Joined: 09 Nov 2015, 11:15

Re: Need help with loops

08 Jun 2016, 06:53

You can use the inbuilt var A_Index that exists within every loop

Code: Select all

j::
Loop {
Send, {d Down}
Sleep % A_Index * 1000
Send, {d Up}
}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: apeironn, Google [Bot], madensuyu1, peter_ahk and 349 guests