Results 1 to 6 of 6

Thread: Looping until an option box opens w/ certain text

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

    Default Looping until an option box opens w/ certain text

    I've got this loop and i just need something to put in the "until" part.


    Simba Code:
    //Repeat
      //insert w/e code here
    //Until(Something that will repeat until an option box with the choice you choose is available);

    ive tries IsUp but thats only available for uptext


    EDIT-----------------

    Done a little playing around and this is my code so far:

    Simba Code:
    Repeat
        FindObjCustom(x, y, ['Insert text here'], [InsertColor Here], 7);
        Mouse(x, y, 0, 0, False);
        ChooseOption('Insert Option Here');
      Until(ChooseOption('Insert Option Here'));

    But it just right clicks and chooses the option over and over again.

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

    Default

    OptionsExist(Options: TStringArray, MoveMouse: Boolean);
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Nov 2011
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ggzz View Post
    OptionsExist(Options: TStringArray, MoveMouse: Boolean);
    i was looking at that but i wasn't sure how it works, specifically the MoveMouse part it tells me to do. do i just say MoveMouse?
    Last edited by KFC; 01-04-2012 at 10:21 PM.

  4. #4
    Join Date
    Sep 2010
    Location
    Azeroth
    Posts
    395
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    u can use the wait func... waits for your function to be true the life shall go on


    WaitFunc(@ChooseOption, 1000+ Random(300), 3000)

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

    Default

    Quote Originally Posted by KFC View Post
    i was looking at that but i wasn't sure how it works, You reccomend a certain tutorial?
    Simba Code:
    Repeat
          MMouse(X, Y, 0, 0);
         if isUptextMultiCustom(['meh', 'sheep', 'whatever']) then
              ClickMouse2(False);
    Until(OptionsExist(['Option 1', 'Option 2', 'Option 3', 'However many u want'], False);

    A TStringArray is just a whole "Bunch" of strings.. aka an Array.

    Can be ['fssgs', 'fsgsgs', 'ainfsdgnsdgs', 'fsfs gdsgs gdg'] <--- can contain spaces in the string, each option is separated by a comma and an array always has square brackets.

    :Boolean can only be true or false..

    So finally:
    Simba Code:
    OptionsExist([you array of strings here], Move the mouse or not? can be false or true)..
    Example: OptionsExists(['gdgds' , 'sgsdg', 'gsgs'], False);... will look for those options and will NOT hover over them.
    I am Ggzz..
    Hackintosher

  6. #6
    Join Date
    Nov 2011
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    DDD Perfected it Thanks for help guys.

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
  •