SRL Archive - OSR Help

herblaw script need help running in browser


westkevin12

2012-11-15 00:19:25

ok so after much help with the new movemouse and click mouse functions this is what i have.

Program ANTIFIRE;
{$Define smart}
{$i srl/srl.simba}
Procedure BANK;
begin
MMouse(259,198,3,3);
ClickMouse2(true);
wait(3000+random(1100));
MMouse(372,361,3,3);
ClickMouse2(true);
wait(1000+random(200));
MMouse(54,163,3,3);
ClickMouse2(False);
wait(500+random(220));
MMouse(52,234,5,0);
ClickMouse2(true);
wait(500+random(100));
MMouse(96,160,3,3);
ClickMouse2(false);
wait(500+random(220));
MMouse(103,233,5,0);
ClickMouse2(true);
wait(500+random(190));
MMouse(490,86,1,0);
ClickMouse2(true);
wait(2000+random(450));
MMouse(578,393,3,3);
ClickMouse2(true);
wait(600+random(200));
MMouse(577,427,3,3);
ClickMouse2(true);
wait(600+random(200));
MMouse(258,478,4,4);
ClickMouse2(true);
wait(17000+random(1000));
end;
begin
SetupSRL;
repeat
Bank;
until (false);
end.


now my only problem is that it is trying to open a new window instead of just running in the browser i have opened.

Scorched

2012-11-15 00:47:56

Next to the paint dropper icon at the top of the Simba window is button you can use to select a client.

If you click that button and then click within the Runescape window it should work for you.

westkevin12

2012-11-15 02:01:51

i ended up taking the smart out of it and that made it work in the browser but it is clicking like 2 squares down on everything…what could be causing that problem? the eyedropper says that the coordinents i put in the script are correct but when i run the script it clicks under everything.

YoHoJo

2012-11-15 02:19:54

I'd highly recommend doing against using that.
Not very much randomness built in, and I'm not sure how safe clickmouse2 is to use on RS.
I'd look into using bitmaps or DTMs or any combination of the function Mouse which moves the mouse AND clicks in the same function.
I'd also use a randomness of 5,5 for all movements/clicks.

Swifte

2012-11-15 02:27:04

And Herblore*