Results 1 to 2 of 2

Thread: IsTextInAreaEx Question

  1. #1
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default IsTextInAreaEx Question

    I'm making an auto potter for the game I play and I want it to read the text in a specified area and decide whether to use a health potion or not. I've used GetTextAtEx already just to test to see if it worked and it did. Very happy

    Anyway, I'm confused with the SVAR manual because here is the syntax for TextInAreaEx-

    Code:
    function IsTextInAreaEx(x1, y1, x2, y2: Integer; var x, y: Integer; S: string; Tolerance: Integer; Chars: Integer; CheckShadow, CheckOutline: Boolean; MinSpacing, MaxSpacing: Integer; TextColor: Integer): Boolean;
    Searches for text in area specified by x1, y1, x2, y2. Other parameters match IsTextAtEx.
    What is the second x and y for? I thought I specified the area in the x1, y1, x2, y2.

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    The function results in a boolean and tell you whether the text is there. It can also tell you where that text is. Just put in tmpx, tmpy there and it will store the location of the text in that variable.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. i cant find a number with "IsTextInAreaEx"
    By tixirius in forum OSR Help
    Replies: 5
    Last Post: 05-21-2008, 03:58 PM
  2. Question
    By Euro-Stylz in forum News and General
    Replies: 6
    Last Post: 03-06-2007, 06:12 AM

Posting Permissions

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