SRL Archive - Help

Mouse click


Simono

2012-05-25 09:57:14

I can't get MouseClick2 to click and I think it's because I'm using a wrong parameter.
I've tried MouseClick2(0/1), MouseClick2(true/false) and MouseClick2(mouse_left/right).
Also I tried using the Mouse function with the same parameters and it moves the mouse but it doesn't click.


procedure findBank;
var x, y, bank: Integer;
begin
bank := DTMFromString('mbQAAAHicY2VgYFBgZGCIB+IGIE4D4kYgXg4UXwbEe4H4GBA/BeLMeDeGvzeVGd6dVYTT2AAjFgwGALo0DmM=');


if FindDTM( bank, x, y, MSX1, MSY1, MSX2, MSY2)
then
begin
Writeln('found bank');
FreeDTM(bank);
Wait(400);
Mouse(x, y, 5, 5, mouse_left);
end else
begin
Writeln('Have not found bank yet');
Wait(1000);
findBank;
end;
end;

Just need to know what to use as a parameter to make it click.

Sin

2012-05-25 09:59:52

Mouse(x,y,5,5,True);

Should work.

Simono

2012-05-25 11:48:52

From: Shay
Mouse(x,y,5,5,True);

Should work.


It places the mouse at the right position but it doesn't click.

Le Jingle

2012-05-25 11:55:28


Mouse(x,y,5,5,True);
should work.. +1

Could also try;

MMouse(x, y, 5, 5);
ClickMouse2(Mouse_Left);
*some uptext confirmation wouldn't hurt either