Results 1 to 4 of 4

Thread: FindObjEx

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

    Default FindObjEx

    Whats this 'step' thing? im pretty sure this is the function i need to use in this script im making, it has all i need, i jst dont know what that 'step' is.

    ive tried these yet i keep getting the error : [Error] (35:75): Type mismatch at line 34

    Simba Code:
    FindObjEx(x, y, 'ake', 6654110, 10, 70, 62, 159, 464, 184);
    ///////////////////////////////////////////////////////////////////////////  
      FindObjEx(x, y, ['ake'], 6654110, 10, 70, 62, 159, 464, 184);
    //////////////////////////////////////////////////////////////////////////
      FindObjEx(x, y, ['ake', 'ta', 'ke'], 6654110, 10, 70, 62, 159, 464, 184);      
    //////////////////////////////////////////////////////////////////////////
    Last edited by KFC; 01-06-2012 at 04:54 AM.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Step: How big you want to make the search squares. 50 = Default. 30-70 Recommended
    ^From inside SRL.

    Also you doing parameters wrong
    Simba Code:
    function FindObjEx(var cx, cy: Integer; Text: TStringArray; Color: TIntegerArray;
        Tol, Step, xs, ys, xe, ye: Integer): Boolean;

    Bascially around the text and color put [] like
    Simba Code:
    FindObjEx(x, y, ['ake', 'ta', 'ke'], [6654110], 10, 70, 62, 159, 464, 184);
    ^That should work, you can also enter multiple colors.

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

    Default

    Quote Originally Posted by YoHoJo View Post
    ^From inside SRL.

    Also you doing parameters wrong
    Simba Code:
    function FindObjEx(var cx, cy: Integer; Text: TStringArray; Color: TIntegerArray;
        Tol, Step, xs, ys, xe, ye: Integer): Boolean;

    Bascially around the text and color put [] like
    Simba Code:
    FindObjEx(x, y, ['ake', 'ta', 'ke'], [6654110], 10, 70, 62, 159, 464, 184);
    ^That should work, you can also enter multiple colors.
    <3 id give you a cookie if i could, everyone loves cookies

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Assuming problem all solved now? Good Good!
    Yeah cookies are great!

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
  •