Results 1 to 5 of 5

Thread: WithdrawEx Withdraw-X Problem

  1. #1
    Join Date
    Nov 2011
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default WithdrawEx Withdraw-X Problem

    Hi.

    In my code, i have

    Simba Code:
    WithdrawEx(4,1,9,[]);

    I want to take 9 items. But at times, it could not find the Withdraw-9 in the Options and click the Withdraw-X and type in number 9.

    This happens at times. I think this is caused by RS changing text font at times, not sure if they do this to find bots.

    I tried to wait for the option

    Simba Code:
    repeat
         Wait(10);
          Writeln('Waiting for Option');
      until WaitOptionMultiEx(['Withdraw-' + IntToStr(Amount), 'w-' + IntToStr(Amount)], 'All', Nothing, 300);

    Even waiting is not helping.

    Is there anyway i can blind click the "Withdraw-9" option assuming it is previously entered and working ?

    Something like

    Simba Code:
    if (WaitOptionMultiEx(['Withdraw-' + IntToStr(Amount), 'w-' + IntToStr(Amount)], 'All', Nothing, 300)) then
    begin
            Result := ChooseOptionMulti(['Withdraw-' + IntToStr(Amount), 'w-' + IntToStr(Amount)]);
    end else begin

     // code to blind click Withdraw-9, it is 4th item in option menu. Above Withdraw-X

    end;

    Thanks,

    Santhosh

  2. #2
    Join Date
    Jan 2012
    Posts
    713
    Mentioned
    3 Post(s)
    Quoted
    9 Post(s)

    Default

    removed.
    Last edited by Google; 05-29-2012 at 06:03 PM.

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    GetChooseOptions.. It will give you the co-ordinates of the option you want to forcibly click.
    I am Ggzz..
    Hackintosher

  4. #4
    Join Date
    Nov 2011
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    @GOOGLE In actual code, i have the texts as third option. I just used empty [] because actual Withdraw function calls Result := WithdrawEx(Col, Row, Amount,[]);

    @Brandon Thanks, i will check GetChooseOptions.

  5. #5
    Join Date
    Nov 2011
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I see RS changing the text/font so OCR get different text at times.

    Here is 2 different texts i get, there can be more, i only checked these 2.

    Simba Code:
    Withd@m-27&rimy spirit weed
    WithRf0m-2V@rim spirit weed

    This is while withdrawing 27 Grimy spirit weed.

    The entry is like

    Simba Code:
    ('WithRf0m-2V@rim spirit weed', (4, 180, 214, 194), (0, 0, 0, 0))

    Is there anyway i can use the value 4, 180, 214, 194 to click or click on 4th entry returned by GetChooseOptions ?

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
  •