SRL Archive - SRL Archives

Click(left: boolean);


marpis

2009-08-17 00:09:38

Self-explanatory (is that a word?)
I don't know if you guys find it useful but i do.


procedure Click(left: boolean);
var
x, y: integer;
begin
GetMousePos(x, y);
HoldMouse(x, y, left);
wait(50+random(20));
ReleaseMouse(x, y, left);
end;

JAD

2009-08-17 00:18:42

Hmm…

Does it really need its own procedure? This procedure could really be just:


procedure Click(left: boolean);
var
x, y: integer;
begin
GetMousePos(x, y);
Mouse(x,y,0,0,left);
end;

?

Edit: Like Infintry said below, I also use the same thing for clicking (as you should). But it's just 2 lines like above.

Infantry001

2009-08-17 00:20:45

I use something similar to this, for occasions such as after I use MMouse to check the uptext. I don't want to use Mouse again, as this changes the location of the actual mouse.

Gu3st...

2009-08-17 01:22:11

I think this has been suggested millions of times before, and I can still not understand why it's never made its way into the include :/
I support this.

EvilChicken!

2009-08-22 02:44:14

From: Zyt3x
I think this has been suggested millions of times before, and I can still not understand why it's never made its way into the include :/
I support this.


If you then can show me these millions of threads/posts requesting it, I'll gladly add it.
For now I won't, sorry - but this is the kind of things I want people to make themselves and keep to their scripts. Mostly because I don't think it shortens many lines at all.