Results 1 to 9 of 9

Thread: ChooseOption broken?

  1. #1
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ChooseOption broken?

    This may be the wrong place, but

    SCAR Code:
    if IsUpTextMultiCustom(['ine', 'ocks']) then
    begin
      GetMousePos(x, y);
      Mouse(x, y, 3, 3, False);
      ChooseOption('ine');
      Exit;
    end;

    won't actually use the ChooseOption part...It basically stops the script right there..Help me?

  2. #2
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Try adding a wait after Mouse. SCAR is too fast for RS so by the time it calls Mouse and then ChooseOption the menu hasn't appeared yet and ChooseOption bypasses it.

  3. #3
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok mate. Thanks for the help. I've been just creating a bitmap for the text and making it click it..

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Doesn't that exit perhaps exits something it shouldn't ?
    Administrator's Warning:


  5. #5
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What? I don't understand..

  6. #6
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    The Exit; you got in that little piece of code there, are you sure it should exit the procedure ?
    Administrator's Warning:


  7. #7
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  8. #8
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Nope, its not ChooseOption, it was merely the wait. You have to wait at LEAST 75 ms. RS isn't as fast as SCAR as Zepher pointed out. So add a wait, and ChooseOption will work fine .

    Nava2
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  9. #9
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Mk. And yes, Sumilion, it's supposed to be there. Before that proc I have I := InvCount;. And after the entire procedure I have repeat Wait(100); FindNormalRandoms until(I<InvCount);.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Chooseoption help
    By Brianb in forum OSR Help
    Replies: 37
    Last Post: 08-27-2008, 07:30 PM
  2. ChooseOption
    By Harry in forum OSR Help
    Replies: 12
    Last Post: 03-03-2008, 04:20 AM
  3. ChooseOption
    By raimis89 in forum OSR Help
    Replies: 2
    Last Post: 01-22-2007, 06:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •