SRL Archive - General

Trying to just create a simple click


Blue90

2011-11-05 23:45:50

Program steps

procedure ClickMouse;
begin
ClickMouse(1273,340:integer;
clickType:integer);
end.

Doing something wrong?

Main

2011-11-05 23:47:53

program steps;
{$i SRL\SRL.scar}

begin
setupsrl;
mouse(x,y,0,0,true);
end.

//change the x,y to what ever you want. you can also do

begin
setupsrl
repeat
mouse( x, y, 10, 10, true);
wait( random( 1000));
until false;
end;

Blue90

2011-11-05 23:52:58

Alright, I am going to diagnose how you got that, if you do have type please reply with how you did, if not i'll try to figure it out :)

I am having ussues where in the heck was the SRL.scar implemented into it, I am using the functionlist and I tried everything with it…

Main

2011-11-06 00:05:05

You can check this out:
http://villavu.com/forum/showthread.php?t=47714

Blue90

2011-11-06 00:18:44

How did you get the Mouse command tho? like I dont understand why you just put mouse there then the positions x,y but what are the 0,0's for?
Where did you get those methods?

Silent

2011-11-06 00:23:44

From: Blue90
How did you get the Mouse command tho? like I dont understand why you just put mouse there then the positions x,y but what are the 0,0's for?
Where did you get those methods?


He used the SRL include. You have to include it at the start of your script. I would suggest you read this tutorial. :)

KingKong

2011-11-06 00:24:13

includes/srl/srl/mouse.scar

Blue90

2011-11-06 00:49:22

hehe, yeah I am reading that tut, :( i didnt see any includes but im only 1/4th done, might start tomorrow. been working at this all day, so far I know how to make a proggy :)

{.include SRL/SRL/core/mouse.scar} :) u just opened the scar file with simba, and I just now see all the includes, how do i know which functions they have tho?

I will be trying this, I think this might just be it.
tried this program Untitled;
{$I SRL/SRL.scar}
begin
SetupSRL;
mouse(2300,3920,0,0,true);
ClickMouse2(true)
end.


IT WORKED!

Kyle Undefined

2011-11-06 01:02:49

Mouse(); is the function you want to use. It's more human like.

The X,Y parameters are coordinates are where you want the mouse to click at.

The next two parameters are how much of a variant of the X,Y coords you want to offset. Basically, if you're using this for RS, NEVER use 0,0 for the offset. That will get you banned. I usually use 5 or 3 depending on what I am clicking.

The last parameter is for which type of click you want. True for left click, False for right click.

Hope this helps!

Blue90

2011-11-06 01:17:59

How would I implement this into just the client instead of the while position outside radius

So in conclusion, as you stated 3,5 this would mean the radius of the selection right? As in how much of a tolerance you can use before declaring it limited.

I need some help guys, I really want to get into this please help me. My msn is [email]Blue_eyed_kings@hotmail.com[/email]

program Untitled;
{$I SRL/SRL.scar}
begin
SetupSRL;
mouse(356,904,0,0,false);
MouseMM(442,652,0,0,false);
end.

tom99

2011-11-06 05:36:28

This is how you do it
mousemm just move the mouse, it don't passes any parameter for clicking.

program Untitled;
{$I SRL/SRL.scar}
begin
SetupSRL;
MouseMM(442,652,0,0); //Move the mouse to 442,652 without any random extra pixels
mouse(442,652,5,4,false); //Click at 442,652 With +5 x and +4 y coordinates using right mousebutton True for left.
end.