My goal is to assist in iterating over the same two alternating commands about 50 times.
Code: Select all
sleep, 25
Send i
Code: Select all
sleep, 25
Send i
Code: Select all
Loop 50
{
sleep, 25
Send i
}
Code: Select all
random, diceroll, 1, 30
; we need this later
remainder := 30 - %diceroll%
; send tabs for the amount of diceroll result
Loop %diceroll%
{
sleep 25
Send {Tab}
}
; send only ONCE after a random amount of tabs
Send {Space}
; now send the remaining tabs up to the amount of "max"
Loop %remainder%
{
sleep 25
Send {Tab}
}
Code: Select all
random, diceroll, 1, 30
; we need this later
remainder := 30 - diceroll
; send tabs for the amount of diceroll result
Loop, % diceroll {
sleep 25
Send {Tab}
}
; send only ONCE after a random amount of tabs
Send {Space}
; now send the remaining tabs up to the amount of "max"
Loop % remainder {
sleep 25
Send {Tab}
}
Users browsing this forum: Anput and 333 guests