
Originally Posted by
123 Ancient
Thanks, I just wasn't sure how to word it but you got it clear. What about if it's multiple colors and if it shows any of the colors it clicks on them but if none are found you do something else, is that possible?
you could... use an array and a for to do loop... sounds hard but it really isn't, it just looks hard.
SCAR Code:
procedure GoInBoat;
var
RuneShop: Array [0..3] of integer;
i, x, y: integer;
begin
RuneShop[0] := 1808876; //couldn't use findsymbol due to high number of players
RuneShop[1] := 3187199; //in the area
RuneShop[2] := 3318783;
RuneShop[3] := 2979583;
for i := 0 to 3 do
if FindColorTolerance(x, y, RuneShop[i], MMX1, MMY1, MMX2, MMY2, 10) then
begin
Mouse(x, y, 0, 0, True);
Break;
end else
begin
DoSomethingElse;
end;
end;
This will look for the runeshop colors (with a tolerance, in the mainscreen of runescape) in order from 0-3 and if found it will click it and break the loop, otherwise if it doesn't find the colors it will do something else.

Originally Posted by
123 Ancient
Also, anyway to scroll on a web page without it having to find the scroll bar and hold it and go down?
have it click on the screen somewhere not important, then do:
KeyDown(VK_Down);
Wait(1000);
KeyUp(VK_Down);
should scroll the screen down for 1 second. or you could do a repeat until it finds a bitmap:
SCAR Code:
KeyDown(VK_UP);
repeat
Wait(50)
until(FindBitmap(Bitmap, x, y))
KeyUp(VK_Up);
you'll probably want to swap out the findbitmap with some other function like FindBitmapToleranceIn or something
Good Luck