SRL Archive - OSR Help

How do I do this


denart5

2013-05-26 15:55:24

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.

The Mayor

2013-05-26 16:51:49

From: denart5
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:


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:


MouseBox(258, 301, 485, 325, 1);

denart5

2013-05-26 16:56:42

From: The Mayor
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:


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:


MouseBox(258, 301, 485, 325, 1);

Hmm, okay but how do I get those coordinates?

The Mayor

2013-05-26 17:08:15

From: denart5
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)

denart5

2013-05-26 17:11:23

From: The Mayor
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 :D Thanks man, I was searching 2 hours for this