SRL Archive - Help

mouse click without taking control


cynicz

2012-06-28 17:44:21

how can i click in the background so i can minimize my application without it taking control of my real mouse.
my script is as follows (very simple)


begin
repeat
MoveMouse(238, 269);
GetMousePos(x, y);
Wait(100);
ClickMouse(238, 269, mouse_right);
Wait(100);
MoveMouse(267, 298);
GetMousePos(x, y);
ClickMouse(280, 298, mouse_left);
Wait(500);
IncEx(BoltsToBuy, 10);
WriteLn('Bolts: ' + IntToStr(BoltsToBuy));
until (IsKeyDown(114)); //pres F3 to stop and continue to Proggie!
end.

wantonman

2012-06-28 17:48:30

well for anything not runescape you can use appa , but for runescape use S.M.A.R.T…




program

{$define SMART}
{$i srl/srl.simba}


begin
Smart_Server := 30;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;

ClearDebug;
SetupSRL;


repeat
MoveMouse(238, 269);
GetMousePos(x, y);
Wait(100);
ClickMouse(238, 269, mouse_right);
Wait(100);
MoveMouse(267, 298);
GetMousePos(x, y);
ClickMouse(280, 298, mouse_left);
Wait(500);
IncEx(BoltsToBuy, 10);
WriteLn('Bolts: ' + IntToStr(BoltsToBuy));
until (IsKeyDown(114)); //pres F3 to stop and continue to Proggie!
end.



zer0hax0r

2012-06-28 17:58:18

From: wantonman
well for anything not runescape you can use appa , but for runescape use S.M.A.R.T…

Can you please link me to 'appa'? I would appriciate it :P

cynicz

2012-06-28 18:03:48

yeah this is for a runescape private server "soulsplit" im trying to design a couple scripts

EtherFreak

2012-06-28 18:11:17

RED FLAG!!!!

I would highly recommend you edit your script a little so you dont get banned!

The following would slightly decrease your chance of getting banned. What you must remember is that all human players are not consistat with their clicking, mouse moving, timing, and duration. we want a bot to play like we do. I would also recommend you visit some of the tutorials.
http://villavu.com/forum/forumdisplay.php?f=28

Best of luck!
program new;

{$i srl/srl.simba}


begin
SetupSRL;
repeat
mmouse(238, 269,3,3); //moves mouse with some slop, I.E.to the point, but can vary 3 in ether direction
GetMousePos(x, y);
Wait(100+random(100));//adds some random time
ClickMouse(238, 269, mouse_right);
Wait(100+random(100)); //adds some random time
mmouse(267, 298,3,3); //adds some randomness to your mouse movement
GetMousePos(x, y);
ClickMouse(280, 298, mouse_left);
Wait(500+random(300));//adds some random time
IncEx(BoltsToBuy, 10);
WriteLn('Bolts: ' + IntToStr(BoltsToBuy));
until (IsKeyDown(114)); //pres F3 to stop and continue to Proggie!
end.

cynicz

2012-06-28 18:19:02

this is for a pserver so randomness isnt that important. I just need to get it to click without actually using my mouse so i can run 2 bots at once (1 buying rune bolts and 1 making dbolt tips)

zluo

2012-06-29 19:59:42

From: cynicz
this is for a pserver so randomness isnt that important. I just need to get it to click without actually using my mouse so i can run 2 bots at once (1 buying rune bolts and 1 making dbolt tips)


not possible, even with appa. your best bet is using a virtual machine, like what i use for my scripts for sousplit :D