This for a game called Last Chaos, my problem is the the mouse is slowly moving to the screen. Also what would I add to make press the left and right arrow keys if it can't find the color?program New;
{.include SRL\SRL.scar}
const
TimetoWait = 2500;
var
x, y : Integer;
procedure KillSaqs;
begin
repeat
if(FindColor(x, y, 725784, 0, 0, 790, 560))then
begin
Mouse(x, y, 10, 10, true);
Wait(TimetoWait-200);
end;
Wait(200);
until(false)
end;
//Main Loop//
begin
repeat
KillSaqs;
until(false);
end.
P.S. This is not even close to what I have plan to do, but I want to get the thing clicking first.
Thanks in advance


Reply With Quote






