Results 1 to 13 of 13

Thread: ChooseOption('ithdraw-All ')

  1. #1
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default ChooseOption('ithdraw-All ')

    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.
    I'm back

  2. #2
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    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.

  3. #3
    Join Date
    Jun 2009
    Location
    New Jersey
    Posts
    154
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by TomTuff View Post
    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.
    Take a look at a new OpenDepositBox here.

  4. #4
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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..
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  5. #5
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    Quote Originally Posted by Xanith View Post
    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...
    Quote Originally Posted by 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.

  6. #6
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    And if you know the item you are choosing, you can of course use -All Fe.
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  7. #7
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    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
    I'm back

  8. #8
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by smurg View Post
    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

  9. #9
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Dynamite View Post
    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.
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  10. #10
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sex View Post
    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

  11. #11
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Quote Originally Posted by Dynamite View Post
    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.
    I'm back

  12. #12
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    Quote Originally Posted by Dynamite View Post
    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.

  13. #13
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wat?

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

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
  •