Now I got it to click using almost the exact same code.. but now its clicking at 0,0 no matter what. The X,Y is always 0,0 for some reason
The part I really don't understand is that im getting the output 'no' but im never getting 'inloop' eventhough its moving the mouse to 0,0... how is that even possbile
Code:
program ThievesStuff;
Const
Mart = 9170145;
Procedure Thieve;
var X,Y : Integer;
begin
Writeln('no')
if (FindColor(X,Y,2642786,0,0,750,500)) then
Writeln('in loop');
MoveMouse(X,Y);
Sleep(1000);
ClickMouse(X,Y,0);
end;
begin
Sleep(250);
ActivateClient;
repeat
Sleep(3000);
Thieve;
until(Random(3) = 4);
end.