WinActivate ("LMS — Mozilla Firefox")
Global $j = 0, $k = 0
Do
MouseClick("left", 415, 205, 1)
Sleep(2000)
Do
MouseClick("left", 1271, 858, 1)
Sleep(10000)
$j = $j + 1
Until $j = 2 ; Increase the value of $j until it equals the value of 2.
$k = $k + 1
Until $k = 2 ; Increase the value of $k until it equals the value of 2.
Exit
The problem is that the second loop keeps on running.
I'm obviously missing something simple.
I'm new to this. Please help.