SRL Archive - OSR Help

Clickmouse safe?


flamer

2010-02-19 00:13:06

I usually use mousekeys to do repetitive tasks, such as high alching. I have written a script that simulates a person using mousekeys to high alch over and over again. The question is, I've read that ClickMouse can get you banned, but I assume this is because it does not include a random movement (Unless there is another reason, such as RS being able to detect when one uses this function. That's why I'm asking:redface:). Since I use mousekeys, it is not uncommon for me to not move my mouse at all for the entire high alching session. Here is my script:

program New;
{.include SRL/SRL.scar}

var
x,y : Integer;

Procedure SetUp;
begin
x:=RandomRange(670, 684);
y:=RandomRange(275, 289);
end;

Procedure Click;
begin
ClickMouse(x, y, True);
wait(1300+random(500));
end;


begin
SetUp;
repeat
Click;
until(false)
end.

If needed, I could add random break/skill-checking codes in… but I'm mostly interested in how risky this script is (Haven't tried to auto RS in a while lol)

i luffs yeww

2010-02-19 00:15:43

The reason ClickMouse is thought to be detectable is because it clicks at well above human speeds.

flamer

2010-02-19 00:34:15

From: i luffs yeww
The reason ClickMouse is thought to be detectable is because it clicks at well above human speeds.


I see.

Well, it seems that my original script wouldn't have worked anyhow. The first click would be at superhuman speeds.

Here is an updated one, which should work, I think:

program New;
{.include SRL/SRL.scar}

var
x,y : Integer;

Procedure SetUp;
begin
x:=RandomRange(670, 684);
y:=RandomRange(275, 289);
MoveWindMouseEx(x, y, 0, 0, 10);
wait(1000+random(500));
end;

Procedure Click;
begin
ClickWindMouse(x, y, 0, 0, True);
wait(1300+random(500));
end;


begin
SetUp;
repeat
Click;
until(false)
end.

YoHoJo

2010-02-19 04:06:18

The most common/ only :p mouse functions really used in SRL scripts are
Mouse(x, y rx, ry:Integer, ClickLeft:Boolean);
and
MMouse(x, y rx, ry:Integer);

:]
Try looking though some already made scripts to get a better idea of basic scripting techniques etc.

void_hatred

2010-02-19 04:24:33

a little typo by YoHoJo :)

they aren't functions they're procedures

the latter procedure is MMouse(x, y, rx, ry: Integer);

void_hatred

YoHoJo

2010-02-19 04:34:24

Thanks for MMouse typo.
And bla bla function procedure, same thing, almost… :p

i luffs yeww

2010-02-20 01:25:52

From: YoHoJo
Thanks for MMouse typo.
And bla bla function procedure, same thing, almost… :p


You still have them mixed up. ^^ It should be Mouse then MMouse. Mouse has five params, while MMouse has four. :)

void_hatred

2010-02-20 05:07:02

From: i luffs yeww
You still have them mixed up. ^^ It should be Mouse then MMouse. Mouse has five params, while MMouse has four. :)


From: YoHoJo
Mouse(x, y rx, ry:Integer, ClickLeft:Boolean);
and
MMouse(x, y rx, ry:Integer);


that's what he has, no?

void_hatred

i luffs yeww

2010-02-20 16:59:38

From: void_hatred
that's what he has, no?

void_hatred


His edit: Last edited by YoHoJo; Yesterday at 10:30 PM.

My post: Yesterday 10:25 PM

;)

Sex

2010-02-20 17:07:32

I don't know how MouseKeys work but if it clicks much like ClickMouse wouldn't it be instant? And people using MouseKeys legit shouldn't be banned right? So they can't tell the difference.

You may need to just try to make your own though..
procedure ClickMouse2(x, y : integer; Left : boolean);
begin
HoldMouse(x, y, Left);
Wait(50 + random(100)); // or whatever you want
ReleaseMouse(x, y, Left);
end;
I would just use Mouse though.