Code:
Loops
You need to know how to do a loop in AutoIt to made a macro for CO, as when you make a macro you are going to want it to run continuously.
The loop I use most is a 'While', and they are very simple to use. If you want a loop to go forever simply type this:
While 1 ;starts loop
MouseClick("left",150,100,1,1)
sleep(1000)
WEnd ;where loop ends
Say you want something to run 10 times. You can use a counter variable to mark how many times something has ran. For example:
$counter=1 ;declares a variable "$counter" and sets its value at 1
While $counter<=10 ;this loop will run as long as $counter is less than or = to 10
MouseClick("left",150,100,1,1) ;code inside loop
sleep(1000) ;code inside loop
$counter=$counter+1 ;increments counter by 1. This makes this a non-infinite loop
WEnd ;end of loop