iridektm
02-13-2012, 09:11 PM
This is a small piece of my script, I need it to find the coordinates of that green plant thing on the stall, then click it basicly. thats all im stuck on. Right now it just moves the mouse to (0,0) for whatever reason. This isn't RS so i have to write all my own procedures mostly.
program Awesomestuff;
{$I SRL/SRL.simba}
var
a, r: integer;
Procedure Thieveit;
begin
if(FindColor(a, r, 1348368, MMX1, MMY1, MMX2, MMY2))then
wait(150);
Mouse(a, r,1,1,true);
end;
begin
SetupSRL;
ActivateClient;
Thieveit;
end.
http://i356.photobucket.com/albums/oo1/andyy367/huh2.pngThanks a ton - Andy.
program Awesomestuff;
{$I SRL/SRL.simba}
var
a, r: integer;
Procedure Thieveit;
begin
if(FindColor(a, r, 1348368, MMX1, MMY1, MMX2, MMY2))then
wait(150);
Mouse(a, r,1,1,true);
end;
begin
SetupSRL;
ActivateClient;
Thieveit;
end.
http://i356.photobucket.com/albums/oo1/andyy367/huh2.pngThanks a ton - Andy.