Results 1 to 6 of 6

Thread: GetTextAtEx help

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

    Default GetTextAtEx help

    Some one help me make it work


    I want to read the number on the screen ( the wilderness level )

    this is not working for me at all .

    cheers

    StrToIntDef(GetNumbers(GetTextAtEx(B.X1 - 1 , B.Y1 - 1, 30, statChars,
    False, False, 0, 0, Colors[i], 20, False, tr_Digits)), -1);

  2. #2
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    StrToInt(GetTextAtExWrap(688, 428, 720, 440, 0, 10, 1, 65535, 5, StatChars));

    the first 4 numbers are the search area coords.

  3. #3
    Join Date
    Jul 2008
    Posts
    136
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok let me check if its working, jsut a question tho wats the difference between the normal ex and wrap ?

  4. #4
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

  5. #5
    Join Date
    Jul 2008
    Posts
    136
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hey i still cant get this to work , please help i attached a screenshot with it

  6. #6
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    you need to mess around with the spacing parameters and see what works best. Or use findtext and extract the number out of it.

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
  •