Hey,
I don't know where to start - what code should I type so that I can add coordinates for both left and right mouse clicks and perhaps even a loop?
I would like to get started off with this -
/Thanks.
Hey,
I don't know where to start - what code should I type so that I can add coordinates for both left and right mouse clicks and perhaps even a loop?
I would like to get started off with this -
/Thanks.
Alrighty.
Make sure you have the latest revision of SRL.
For left clicks, use:
SCAR Code:Mouse(x, y, ranx, rany: Integer; left: boolean);
x and y are your coordinates, ranx and rany are a random number added to x and y for, well, randomness. If left is true, it clicks left. Else, it clicks right.
So, let's say you wanted to left click at one place, and right at another.
SCAR Code:program CoordClicker;
{.include SRL/SRL.scar}
var
x, y: Integer; //With every script that uses coordinates, you must declare x and y.
begin
SetupSRL; //You must do this for the script to work right.
Mouse(200, 200, 3, 3, True); //Will left click at roughly 200, 200
Wait(500);
Mouse(550, 550, 5, 5, False); //Will right click roughly at 550, 550
end.
Look for tutorials. They're very useful. ^.^
mouse can be used for left or right clicks you could do mouse(x, y, 3, 3, false);
whatever you need in there but it right clicks![]()
thanks guys
ok..? sorry it didn't show it for me at first, it looks like your post has doubled in size :P
There are currently 1 users browsing this thread. (0 members and 1 guests)