SRL Archive - OSR Help

ChooseOption('ithdraw-All ')


smurg

2011-01-22 01:40:52

Anyone have a fix on how to have it click 'withdraw-all' and not 'withdraw-all but one'?

Using the function in the title use to work, because it probably searched top to bottom, but now since an update maybe, it click the other option.

Thanks.

TomTuff

2011-01-22 01:59:50

use shorter text… 'ithdraw-All' is far too long to search for, and so it probably skips it the first time. 'aw-Al' is good.

Xanith

2011-01-22 02:03:14

From: TomTuff
use shorter text… 'ithdraw-All' is far too long to search for, and so it probably skips it the first time. 'aw-Al' is good.


I think what he is saying is when he puts in ChooseOption('aw-Al') it selects withdraw-all but one.

what you could do is have it find a bitmap of the Withdraw-All option and have it search for that instead.

Sex

2011-01-22 02:54:00

Or make a bitmap of All with a space to the right of it.
Withdraw-[All–] <– Bracketed area with the appended -'s being spaces of like 4px or something.
Withdraw-All but one
Point is so that it will check and if it finds the b in but it won't return true and use the above one as well. It is kinda hard for me to explain..

TomTuff

2011-01-22 03:06:52

From: Xanith
I think what he is saying is when he puts in ChooseOption('aw-Al') it selects withdraw-all but one.

what you could do is have it find a bitmap of the Withdraw-All option and have it search for that instead.


Yes, I know. As far as I'm aware, the ChooseOption function and its variants search top to bottom. so if the options are…
From: Runescape Dropdown menu

Withdraw-1 Feather
Withdraw-5 Feather
Withdraw-10 Feather
Withdraw-32 Feather
Withdraw-All Feather
Withdraw-All but one Feather

It would search the line with Withdraw-All. It times out before it can look before 'ithdraw-All' because the string is so long. The long string wouldn't be necessary for accuracy, and it won't time out the first time.

Sex

2011-01-22 03:13:10

And if you know the item you are choosing, you can of course use -All Fe.

smurg

2011-01-22 05:31:57

Shortening the string worked.

I don't know why it wouldn't find the Withdraw All one because the texts are the same, but it works now.

ty

**BANNED The Man

2011-01-22 09:52:54

From: smurg
Shortening the string worked.

I don't know why it wouldn't find the Withdraw All one because the texts are the same, but it works now.

ty


Think of it like this:

You are told by your school principle that you need to find 10 pieces of paper that have your grades on, if you find some but not all then you don't get any grades. If you find all then you will get all of your grades :)

-Boom

Sex

2011-01-22 10:26:05

From: Dynamite
Think of it like this:

You are told by your school principle that you need to find 10 pieces of paper that have your grades on, if you find some but not all then you don't get any grades. If you find all then you will get all of your grades :)

-Boom
What he said proves quite the opposite of what you are saying.

**BANNED The Man

2011-01-22 17:11:58

From: Sex
What he said proves quite the opposite of what you are saying.


I was thinking one side rather than both, my analogy:
If you are searching for 10 letters then if it doesn't find them all in the certain amount of time then it won't use it/select it.
The other side that I said was wrong, yes.
Sorry xD

-Boom

smurg

2011-01-22 22:01:26

From: Dynamite
I was thinking one side rather than both, my analogy:
If you are searching for 10 letters then if it doesn't find them all in the certain amount of time then it won't use it/select it.
The other side that I said was wrong, yes.
Sorry xD

-Boom


That's still wrong.

It finds one but not the other and returns the second. But when the text is shortened, it *can* find both, but it finds the first one and returns it, which is the one we want now.

It returns the first option it finds.

TomTuff

2011-01-23 03:55:36

From: Dynamite
I was thinking one side rather than both, my analogy:
If you are searching for 10 letters then if it doesn't find them all in the certain amount of time then it won't use it/select it.
The other side that I said was wrong, yes.
Sorry xD

-Boom


Using your analogy, it would go this way. You want to find the 4th paper of the 10 papers with your name on it. If you happen to not see the 4th one, or any of the previous ones, then the 4th you successfully count would be the 5th one.

**BANNED The Man

2011-01-23 04:39:12

Wat?

If it doesn't find all letters to ChooseOption('Withdraw-All') then it won't click it…