• Log in or sign up for an account here: https://www.sythe.org/login

Scar scripting question

i-joost

Newcomer
Joined
Sep 17, 2007
Sythe Gold
0
Messages
5
Location
Holland
Hi I registered several years ago but then quitted rs but now ive started it again and im working on a script wich function i rather not mention but i have a question.

I have my mouse moved to a spot with a random like this:

MoveMouseSmoothEx(137+random(63),57+random(63),20,40,45,25,20);

And then I want scar to let the mouse click on the spot where the mouse move had ended.

is this possible?
ive searched in the beginners tutorial but didnt found it.
 
Code:
GetMousePos(X,Y)
Gets the coordinates of the X and the Y of the screen of the client window.
So what could u do?, when u moved the mouse to that coordinate, use the function to give X and Y that coordinates. Then use a function that clicks the mouse with the given coordinates.

Example:
Code:
program testcoordiantes;
var
x,y: Integer;
procedure getcoordinates;
begin
MoveMouseSmoothEx(12,12,12,12,12,12,12);
wait(100);
Getmousepos(x,y);
Writeln('Your X : '+inttostr(x)+'');
writeln('your Y : '+inttostr(y)+'');
Writeln(' this is made by Eduardsale, check out my thread at : http://www.sythe.org/showthread.php?t=683205');
end;

begin
getcoordinates;
end.

No problem, ~ Eduard
 
Runescape Gamblingrunescape gambling
Back
Top