Posts: 48
Threads: 18
Joined: Sep 2005
Hi
I`ve writen a macro that repeats several times. For first few times it works ok but then it mess up
At first i thought it`s a code mistake but if run macro by trigger every time with just single repetition it works great.
Maybe some memory gets overfilled or sth....
sory, i decided to delete this code as it may lead to unecessary abuse of quickmacros policy (actually you could delete this post Gintars)
[/b]
Posts: 12,073
Threads: 140
Joined: Dec 2002
Quote:;here comes rep 200
act w2
'Amw
,
,czx = 0
,czy = 0
,cdox = 0
,cdoy = 0
,
,,for i 0 12
,,,if(scan(crafty[i] w2 0 1)) break ;;scan returns 1 if found, or 0 if not found
,,,if(i=13) out "not found crafty"
,POINT p
,,x = xm(p "Crafty-19.19" )
,,y = ym(p "Crafty-19.19" )
Please post the code full and normally formatted. Now you use tabs where not needed, and it makes the code hard to understand.
Use tabs only in code blocks that follow flow-control keywords: rep, for, foreach, if, ifa, ifi, ifk, iff, else, sel, err.
if(i=13) out "not found crafty"
replace to
if(i=12) out "not found crafty"
Posts: 37
Threads: 20
Joined: Nov 2006
Can i have the full macro, it is very interesting
If someone did something similar for chess, please tell me more!
Thanks