Results 1 to 11 of 11

Thread: Trying to just create a simple click

  1. #1
    Join Date
    Nov 2011
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default Trying to just create a simple click

    Program steps

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

    Doing something wrong?

  2. #2
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    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;
    Oh Hai Dar

  3. #3
    Join Date
    Nov 2011
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    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...
    Last edited by Zyt3x; 11-06-2011 at 12:08 PM. Reason: merged posts.

  4. #4
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Oh Hai Dar

  5. #5
    Join Date
    Nov 2011
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    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?

  6. #6
    Join Date
    Mar 2007
    Location
    USA
    Posts
    1,433
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Blue90 View Post
    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.
    I'm Silent SPY
    Secret project: 0%
    Need help? Send me a PM

  7. #7
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

  8. #8
    Join Date
    Nov 2011
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    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!
    Last edited by Zyt3x; 11-06-2011 at 12:07 PM. Reason: merged posts.

  9. #9
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    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!
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  10. #10
    Join Date
    Nov 2011
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    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 Blue_eyed_kings@hotmail.com
    Simba Code:
    program Untitled;
    {$I SRL/SRL.scar}
    begin
      SetupSRL;
      mouse(356,904,0,0,false);
     MouseMM(442,652,0,0,false);
      end.
    Last edited by Zyt3x; 11-06-2011 at 12:07 PM. Reason: merged posts.

  11. #11
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    This is how you do it
    mousemm just move the mouse, it don't passes any parameter for clicking.
    Simba Code:
    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.
    Last edited by tom99; 11-06-2011 at 10:38 AM.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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