How do i make the mouse hold at a certain co-ordinate and then drag to another certain co-ordinate? I been messing arround and cant seem to find it...
Thanks in advance!!
EDIT: Nevermind. Sorted it. Sorry!!
How do i make the mouse hold at a certain co-ordinate and then drag to another certain co-ordinate? I been messing arround and cant seem to find it...
Thanks in advance!!
EDIT: Nevermind. Sorted it. Sorry!!
SCAR Code:HoldMouse(x, y, True);
Wait(400+Random(800));
MMouse(56, 78, 4, 4, True);
ReleaseMouse(x, y, True);
^ Hope I Helped^
Yea thanx!! u know tht bit that says 4,4? what does it mean? Im using ure tut btw.
it means that it will randomise a range of + and - 4 on both x and y
Mouse(x,y,5,5,true) would click the mouse at whatever x and y were determined to be and + or - random 5 x or 5 y =)
Thanks guys. mucho appreciated!!
SCAR Code:HoldMouse(x, y, True);
Wait(400+Random(800));
MMouse(56, 78, 4, 4, True);
ReleaseMouse(x, y, True);
Noo! If you do ReleaseMouse to the same coordinates as you did to HoldMouse before moving mouse, it releases the mouse at the same coords it held it at, moving it instantly there.
you would have to do
SCAR Code:HoldMouse(x, y, True);
Wait(400+Random(800));
MMouse(56, 78, 4, 4, True);
GetMousePos(x,y);
ReleaseMouse(x, y, True);
=) there
Its okay, i got it figured. I just needed to know: MMouse, HoldMouse and ReleaseMouse functions.
I got a nice lil script coming soon. Might just leave it simple or do add something else...
NEW PROBLEM:
SCAR Code:Const
Username:='';//type username here
Password:='';//type password here
Just quick query about Const. If i add a ":" to just after the username. does that mean i dont have to write something like:
and instead can write something like:SCAR Code:TypeSend(Username='+username+');
Without all the extra writingSCAR Code:TypeSend(Username);
Use this-
SCAR Code:Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
end;
begin
DeclarePlayers;
LoginPlayer;
//so on and so forth with the rest of your script
end.
Im making my own ty.
Actually:
.SCAR Code:HoldMouse(x, y, True);
Wait(400+Random(800));
MMouse(56, 78, 4, 4, True);
GetMousePos(x,y); // need the co-ords :)
ReleaseMouse(x, y, True);
yeah i edited lol, but why are you making your own? the whole point is to use the SRL includes... and they have fixes out now...
I know, but i thought it increase my chances of getting membership?
Also, what is the escape key character?
don't get ahead of yourself matetake some time to really make a good script and debug it well, or else you will end up waiting for a month to post your fixed script.
~ Metagen
Actually now that i think about it, this is the kind of thing peopel say no for. use SRLs declare players... or people will say no for stupid reasons :\ and scapian get on msn i wanna chat!
~ Metagen
Im using Arrays yes. But it wont login cuz of new login screen, thats why i make my own.
I don't play runescape. I auto it
There are currently 1 users browsing this thread. (0 members and 1 guests)