SRL Archive - OSR Help

Is it broken?


itz_Adren

2012-02-24 19:47:07

Ok so I'm making my script and im using
ChooseOption('text');
When i left clicks it opens the option menu, then when it clicks the option it completely misses and doesn't choose the option. Is it broken or am i just stupid?

Paradoxium

2012-02-24 19:49:31

the problem is most likely in that you need to be more specific in what the text is. if your text it 'ank' and there are five options to bank in the options list, it may get confused. If you want more advice please post the script so that we can take a look and help you out better :D

tehq

2012-02-24 19:53:05

Yes use a few letters (not the first or it must be a capital) of the option that you want to choose. Like lord said, ChooseOption('ank');

itz_Adren

2012-02-24 19:53:25

From: lordofballss
the problem is most likely in that you need to be more specific in what the text is. if your text it 'ank' and there are five options to bank in the options list, it may get confused. If you want more advice please post the script so that we can take a look and help you out better :D


Case Random(2) of
0: Mouse(x, y, 5, 5, True);
1: Begin
Mouse(x, y, 5, 5, False);
wait(100+random(100));
ChooseOption('Craft-rune');
end;
end;
it opens the option screen then goes completely off the option menu and the menu disappears
ive tried aft, cra.. let me try rune or something like it 1 sec

EDIT: Ok, i got it, it seems when I use something in the word 'Craft', it didn't work but i just tried 'une' and it worked thanks guys!

Mat

2012-02-25 09:02:55

Here This is Mine Working:
This is my friends not working:
His Looks Darker and bolder.
I'm picking up on All.
Mat

bg5

2012-02-25 13:16:42

Only difference i see is spacing.

I suggest to use

WaitOption

istead of

ChooseOption.

It gives OCR multiple tries to find a text.

Mat

2012-02-25 13:23:26

It's the same I got t in a repay function and it will sit there doing nothing I got it working by using bitmaps for the words say A I use a bitmap for it works well shame choose option doesn't :/
Mat

Nebula

2012-02-25 20:25:46

Why not use ChooseOptionMulti? That way it's more likely to find what you need.

Edit: Or do something like:

Repeat
Wait(50);
until(ChooseOption() or ChooseOption() or ChooseOption())


Either would probably work.