CONSTANTS
run_time = 0
coordinatex = 0
coordinatey = 0
END CONSTANTS
Procedure createCoordinate
If $run_time = 1
setconst $coordinatex = 123
setconst $coordinatey = 456
else if $run_time = 2
setconst $coordinatex = 111
setconst $coordinatey = 222
else if $run_time = 3
setconst $coordinatex = 333
setconst $coordinatey = 444
end if
End
Procedure Run
compute $run_time = $run_time + 1
call createCoordinate
MousePos $coordinatex, $coordinatey
delay 1000
LeftClick
delay 1000
Keys m
delay 1000
Keys e
delay 1000
Keys {ESC}
Delay 5000
Keys m
delay 1000
Keys c
delay 1000
Keys {ESC}
End
MousePos 899, 493
LeftClick
Keys h
delay 1000
Loop 3
call Run
End
This is the Output:
*Don't care about other action, just focus on Mousepos
Mousepos 899, 493
Mousepos 333, 444
Mousepos 111, 222
Mousepos 111, 222
*If I set more loops, other output will be all Mousepos 111, 222 until loops end.
What is the problem, can anyone help me to fix it?
