SRL Archive - Help and Support

findcolor weird???


rkroxpunk

2007-05-11 13:16:09

//FindColorTolerance(x, y, 7566204, 104, 94, 148, 142, 5)
Wheel := AutoColorThis(Spinner, 20, MSX1, MSY1, MSX2, MSY2);
FindColor(x, y, Spinner, MSX1, MSY1, MSX2, MSY2)
Writeln('Found spinning wheel')
MMouse(x, y, -1, 0)
wait(300+random(100))
Counter1:=Counter1+1;
until (IsUpText('Spin'))or (Counter1 >= (6))

half the time instead of moving the mouse to the right spot it just moves the mouse to the compass and my box to look in isn't anywhere near the compass :s same thing happens with commented out bit

nielsie95

2007-05-11 13:44:08

Maybe use if..then?

rkroxpunk

2007-05-11 13:48:00

used to have that……no dif…..>.<

EDIT: AGH! now RW not working. I made it even made it do a 360 degree scan of MM! it finds roadcolor and then my writeln says it can't find the road :s even tho the road is clearly on the map *sigh pulls out gun*

Bobarkinator

2007-05-11 19:17:08

//FindColorTolerance(x, y, 7566204, 104, 94, 148, 142, 5)
Wheel := AutoColorThis([B]Spinner[/B], 20, MSX1, MSY1, MSX2, MSY2);
FindColor(x, y, [B]Spinner[/B], MSX1, MSY1, MSX2, MSY2)
Writeln('Found spinning wheel')
MMouse(x, y, -1, 0)
wait(300+random(100))
Counter1:=Counter1+1;
until (IsUpText('Spin'))or (Counter1 >= (6))

Don't you want to change the second spinner to wheel because it is a bitmap? if I'm not mistaken.

n3ss3s

2007-05-13 02:37:26

silly question but รบ got SetUpSrl there?

neG

2007-05-13 06:06:09

I believe bobarkinator got it right.
Works for me now.

rkroxpunk

2007-05-13 06:51:20

ah k thx guys and yes I have SetupSRL :P
thought it was a silly mistake oh well