I was doing a macro that would use lots of key presses and I know that you could reduce the size of the macro with procedures.
Here is some parts from the script to make you understand.
CODE
.....
loop 11
call {loopno}
// settings
procedure left using loopX
loop $loopX
keydown {left} 50
delay $speed
end
end
// levels
procedure 1 // level 1
call right 1
call down 2
call right 2
call down 1
call right 1
call wait // level 1 Done
end
loop 11
call {loopno}
// settings
procedure left using loopX
loop $loopX
keydown {left} 50
delay $speed
end
end
// levels
procedure 1 // level 1
call right 1
call down 2
call right 2
call down 1
call right 1
call wait // level 1 Done
end
Procedure 1 have 6 calls and i got other procedure with more than 30 lines of calls and its big and ugly so i was thinking... can you reduce the calls?
example:
call right 1, down 2, right 2, down 1, right 1, wait
or
call right 1|down 2|right 2|down 1| right 1| wait
hope you understand
-Vanberk