However it is not getting executed.
What's missing?
Code: Select all
;Multiple Clicks with Scroll
counter := 0
+WheelUp::
While (counter <= 4)
{
; Increment the counter
counter++
if counter == 1
; MsgBox, This is iteration number %counter%
Click, 150, 1020 Left, 2
if counter == 2
Click, 60, 1020 Left, 2
if counter == 3
; MsgBox, This is iteration number %counter%
Click, 180, 95 Left, 2
if counter == 4
Click, 1670, 95 Left, 2
; Exit the loop if the counter reaches 5
if (counter > 4)
{ counter := 0
Break
}
}