Results 1 to 17 of 17

Thread: Trouble with mouse function...

  1. #1
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Trouble with mouse function...

    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!!

  2. #2
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    HoldMouse(x, y, True);
    Wait(400+Random(800));
    MMouse(56, 78, 4, 4, True);
    ReleaseMouse(x, y, True);

    ^ Hope I Helped ^

  3. #3
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea thanx!! u know tht bit that says 4,4? what does it mean? Im using ure tut btw.

  4. #4
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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 =)

  5. #5
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks guys. mucho appreciated!!

  6. #6
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    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.

  7. #7
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  8. #8
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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:
    SCAR Code:
    TypeSend(Username='+username+');
    and instead can write something like:
    SCAR Code:
    TypeSend(Username);
    Without all the extra writing

  9. #9
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  10. #10
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im making my own ty.

  11. #11
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    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);
    .

  12. #12
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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...

  13. #13
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know, but i thought it increase my chances of getting membership?
    Also, what is the escape key character?

  14. #14
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    don't get ahead of yourself mate take 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

  15. #15
    Join Date
    Sep 2007
    Location
    Pennsylvania
    Posts
    3,396
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by 0wn 4 skill View Post
    I know, but i thought it increase my chances of getting membership?
    Also, what is the escape key character?
    Making your own DeclarePlayers? I doubt it'll help much, if at all. Every DeclarePlayers is based upon the same thing, and I haven't seen anyone have a DeclarePlayers much different from the default one (the one pvh posted).

  16. #16
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  17. #17
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Function (Mouse) Help! Too Slow
    By flamingvenom in forum OSR Help
    Replies: 2
    Last Post: 09-24-2008, 12:12 PM
  2. Trouble with Mouse Control?
    By chika chika yeah in forum OSR Help
    Replies: 4
    Last Post: 04-25-2008, 03:44 AM
  3. Help W/ Mouse Function
    By mysticalman in forum OSR Help
    Replies: 5
    Last Post: 02-25-2008, 10:15 PM
  4. I really need to know this mouse function
    By sacco in forum OSR Help
    Replies: 3
    Last Post: 01-25-2008, 09:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •