351bryce
2014-02-18 02:58:11
So im Wondering why this script is so slow as i only have 100ms delay only will only press ctrl like every second is it because of pixel but it worked fine in a simular version without the timer.
program new;
const timetowait = 180000;
var x, y, counter: integer;
procedure fish;
begin
keydown(17);
wait(100);
keyup(17);
end
procedure antiafk;
begin
if ((getsystemtime + counter) > timetowait) then
begin
keydown(44);
wait(500);
keyup(44);
wait(100);
keydown(41);
wait(500);
keyup(41);
wait(100);
keydown(57);
wait(500);
keyup(57);
wait(100);
counter := getsystemtime;
end
end
begin
counter := getsystemtime;
Repeat
if findColorTolerance(x, y, 0, 235, 177, 267, 180, 1) then
begin
fish;
end
antiafk;
until(false)
end.