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

need help with scar

madd-x

Newcomer
Joined
Apr 25, 2010
Sythe Gold
0
Messages
3
so i need to know what code i need to use,

if i want the mouse click on a certain coordinate
when a certain colour in a certain coordinate changes.

example

coordinate 0,0 changes colour
so the mouse will click on coordinate 1,1

ty if any1 could help
 
i would do something like:

Code:
program New;

var
x, y, x1, y1: integer;
complete: boolean;

begin
  complete:= false
  if findcolor(x,y,INSERTCOLORHERE,0,0,8000,8000) = true then
  begin
    repeat
      if findcolor(x1,y1,INSERTCOLORHERE,x,y,x,y) = false then
      begin
        complete:= true
        movemousesmooth(x1,y1)
        clickmouse(x1+1,y1+1,true)
      end;
    until (complete = true);
  end;
end.

replace INSERTCOLORHERE, with the starting color
then the program will search the entire screen for the first instance of that color, and it will focus on that exact pixel until it changes colors, at that point it will click 1 pixel lower, and 1 pixel right to it, it will then end
 
yeh exactly
 
Code:
program New;

var
x, y, x1, y1: integer;
complete: boolean;

begin
  complete:= false
  if findcolor(x,y,INSERTCOLORHERE,0,0,8000,8000) = true then
  begin
    repeat
      if findcolor(x1,y1,INSERTCOLORHERE,x,y,x,y) = false then
      begin
        complete:= true
        movemousesmooth(x1,y1)
        clickmouse(x1+1,y1+1,true)
      end;
    until (complete = true);
  end;
end.

nice code, but what code would i change to scan one specific coordinate than scanning the whole area
 
at the beginning?

it would be these coordinates: (in bold)

if findcolor(x,y,INSERTCOLORHERE,0,0,8000,8000) = true then

where the 0,0 is the upper left starting corner, and 8000,8000 is the lower right corner, i just put 8000, 8000 cause that will cover almost ALL screens (unless you have a ridiculous screen size)
 
Runescape Gamblingrunescape gambling
Back
Top