It appears 'didClick()' is broken and always returning false regardless of click type and arguments.
Mouse(Point(MSCX, MSCY), 5, 5, mouse_left);
writeln(didYellowClick());
Will return false even a yellow click was done.
I don't know if the color will remain constant on different sessions, but the color of black (65536) seems to be changed to 2300956.
Also, updating is broken as pastebin changed their raw paste url location.
I got something like
Simba Code:
function didClick(Red: Boolean; Time: integer): boolean;
var
T : Timer;
B : TBox;
colR,colB,colY : TColEx;
begin
B := pointToBox(getMousePnt(), 15);
checkAreaBounds(B);
colR.create(2301175, 15);
colB.create(2300956, 15);
colY.create(2357239, 15);
T.start();
while (T.timeElapsed < Time) do
begin
//writeln(colB.count(B), ' ', colR.count(B), ' ', colY.count(B), ' ', T.timeElapsed);
if (colB.count(B) > 30) then
begin
if Red then
begin
if (colR.count(B) > 10) then
exit(true);
end else
begin
if (colY.count(B) > 10) then
exit(true);
end;
end;
end;
end;
Seems to work.