Results 1 to 5 of 5

Thread: How do I do this

  1. #1
    Join Date
    Sep 2012
    Posts
    270
    Mentioned
    4 Post(s)
    Quoted
    97 Post(s)

    Default How do I do this

    I let my script click 2 items and then this menu appears: http://runescape.wikia.com/wiki/Make-X.
    The difference being that it says Add Feather instead of Craft.
    I've tried:
    WaitOption('eather', 1000);
    ChooseOption('eather');
    but it doesn't work.

  2. #2
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by denart5 View Post
    I let my script click 2 items and then this menu appears: http://runescape.wikia.com/wiki/Make-X.
    The difference being that it says Add Feather instead of Craft.
    I've tried:
    WaitOption('eather', 1000);
    ChooseOption('eather');
    but it doesn't work.
    That is because the font of the button is not recognised. Only UpText, chat box text, right click options etc. are recognised. The easiest thing for you to do here would be to make a MouseBox of the button.

    A MouseBox procedure will click anywhere (randomly) within the bounds of the box, which is great for buttons!

    The parameters of the MouseBox procedure are:

    Simba Code:
    MouseBox(x1, y1, x2, y2: Integer; ClickType: Integer);

    X1 and Y1 are the top left coordinates of the button, and the X2, Y2 are the bottom right coordinates of the button. The ClickType is either 0 (right click) or 1 (left click).

    So, an example MouseBox which left clicks a button will look like this:

    Simba Code:
    MouseBox(258, 301, 485, 325, 1);

  3. #3
    Join Date
    Sep 2012
    Posts
    270
    Mentioned
    4 Post(s)
    Quoted
    97 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    That is because the font of the button is not recognised. Only UpText, chat box text, right click options etc. are recognised. The easiest thing for you to do here would be to make a MouseBox of the button.

    A MouseBox procedure will click anywhere (randomly) within the bounds of the box, which is great for buttons!

    The parameters of the MouseBox procedure are:

    Simba Code:
    MouseBox(x1, y1, x2, y2: Integer; ClickType: Integer);

    X1 and Y1 are the top left coordinates of the button, and the X2, Y2 are the bottom right coordinates of the button. The ClickType is either 0 (right click) or 1 (left click).

    So, an example MouseBox which left clicks a button will look like this:

    Simba Code:
    MouseBox(258, 301, 485, 325, 1);
    Hmm, okay but how do I get those coordinates?

  4. #4
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by denart5 View Post
    Hmm, okay but how do I get those coordinates?
    It's pretty easy, scroll down a little until you get to the coordinates section of this tutorial.


    (I think the coordinates I gave you in the example might be for that "Craft" button anyway)

  5. #5
    Join Date
    Sep 2012
    Posts
    270
    Mentioned
    4 Post(s)
    Quoted
    97 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    It's pretty easy, scroll down a little until you get to the coordinates section of this tutorial.


    (I think the coordinates I gave you in the example might be for that "Craft" button anyway)
    Oh yea it seems you did Thanks man, I was searching 2 hours for this

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
  •