• Log in or sign up for an account here: https://www.sythe.org/login

Colour Detection

Innuendo

Active Member
Joined
Sep 27, 2010
Sythe Gold
0
Messages
155
Okay I need SCAR to detect a colour and instantly click it. I have no clue how to use SCAR so if someone could be descriptive when posting how to do it. I'd be very grateful.
 
Code:
program Colour;

var
  x, y : integer;
begin
  If FindColor(x, y, COLOR_HERE, 0, 0, 500, 500) Then
  begin
    movemouse(x, y);
    clickmouse(x, y, true);
  end;
end.
That would do it assuming the client dimensions are 500x500. Replace COLOR_HERE with the color.
 
Try this...
Code:
program Colour;

var
  x, y : integer;
begin
  If FindColor(x, y, 3037874, 0, 0, 750, 750) Then
  begin
    movemouse(x, y);
    clickmouse(x, y, true);
  end;
end.
Remember to drag the cross to specify the client(it's on the toolbar).
 
I dragged the cross on the client still then press the green play button, then I just get a message saying successfully executed without clicking.
 
Runescape Gamblingrunescape gambling
Back
Top