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

if 556, 51 = a certain colour

slj90

Newcomer
Joined
Jun 7, 2009
Sythe Gold
0
Messages
4
hey guys, im new to scripting scar, so need a little help with this, its not for runescape though, basicly i want it to press the spacebar and release it if a certain colour is at the given posistion.. the code i have so far, which doesn't work is below

Code:
program New;
const
PerfColor= 8449704;
begin
If (Getcolor(556, 51)) = (PerfColor) then
begin
Writeln('Woo')
end else
Writeln('Boo')
end.

thanks for any help
 
you ment like it presses space if it finds the color? or press space and release it if color found?
this script presses the spacebar if the color is in the given coords
Code:
const
color = 7890190;//the color you want to look for

procedure Findcolor;
begin
if(GetColor(407,256)=color)then//coords here
KeyDown(32);
wait(1000)//time to hold spacebar down
KeyUp(32);
end;

begin
repeat
Findcolor;
if(IsFunctionKeyDown(1))then   //stops the script if funcionkey 1 down = left ctrl
begin
exit;
end;
until(false)
end.
 
this one releases spacebar if color found
Code:
const
color = 7890190;//the color you want to look for

procedure Findcolor;
begin
     if(GetColor(407,256)=color)then // coords here
                                    begin
                                         KeyUp(32);
                                         end else
                                    begin
                                         Keydown(32);
                                         end;
end;

begin
repeat
Findcolor;
if(IsFunctionKeyDown(1))then   //stops the script if funcionkey 1 down = left ctrl
begin
exit;
end;
until(false)
end.
 
duelarena.gg
Back
Top