Results 1 to 4 of 4

Thread: Read a text

  1. #1
    Join Date
    Jun 2012
    Location
    THE Students-City of Holland
    Posts
    332
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Read a text

    Hello,

    I'm trying to read a text on this image...



    I know I probably have to use the function "GetTextAt", but the documentation only says this:

    GetTextAt

    function GetTextAt(const atX, atY, minvspacing, maxvspacing, hspacing,color, tol, len: integer;const font: string): string;
    A general function for reading text. Reads text at (atX, atY) with a minimal vertical spacing of minvspacing and a maximal vertical spacing of maxvspacing, the text colour should match the colour color with the given tolerance Tolerance; the length of the text is specified with len. Finally, the font to use for the identifying is specified with the fontname font.
    I don't understand it 100%... Is there a tutorial about reading texts? I couldn't find one.
    Anyway, I need to read the words "buy" "empty" or "sell", above the GE spots... How should I do this?
    Last edited by Master BAW; 06-17-2012 at 12:43 PM.

  2. #2
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    FindText(x, y, 'Buy', UpCharsEx, MBX1, MBY1, MBX2, MBY2)

  3. #3
    Join Date
    Jun 2012
    Location
    THE Students-City of Holland
    Posts
    332
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by CephaXz View Post
    FindText(x, y, 'Buy', UpCharsEx, MBX1, MBY1, MBX2, MBY2)

    oh that's easy! IT WORKS, thanks!

  4. #4
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hope you get your script done soon

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
  •