Bug5532
2010-11-28 07:35:15
Hi, I have a game that I have been scripting for and sometimes the mouse just will click and sometimes it wont (it will always move the mouse to the correct position). Is there an alternative way of clicking the mouse?
2010-11-28 07:35:15
2010-11-28 07:46:20
Program Example;
{$i SRL\SRL.scar}
begin
Mouse(200, 200, 4, 4, true);
if not DidClick(True, 600) then
ClickMouse2(True);
end;
2010-11-28 07:47:36
2010-11-28 07:58:30
program new;
{$i SRL\SRL.scar}
function CustomDidClick(TimeOut: Integer);
var
x, y: integer;
begin
MarkTime(T);
repeat
GetMousePos(x, y);
Result := FindColor(x + 2, y + 2, 27390, 0, 0, 100, 100);
until(TimeFromMark(T) >= TimeOut);
end;
begin
Mouse(150, 150, 10, 10, true);
if not CustomDidClick(600) then
ClickMouse2(True);
end; 2010-11-28 08:10:04
2010-11-28 08:47:51
2010-11-28 09:45:55
MoveMouse(x, y);
ClickMouse(x, y, mouse_Left);
wait(200);2010-11-28 10:25:32
From: TomTuff
ClickMouse2(Left: Boolean);
in SRL.
From: EGM
I'm scripting for a flash game as well, and have been having luck with moving then clicking.MoveMouse(x, y);
ClickMouse(x, y, mouse_Left);
wait(200);
~EGM