Results 1 to 3 of 3

Thread: GetTextAtExWrap Spacing

  1. #1
    Join Date
    Dec 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default GetTextAtExWrap Spacing

    EDIT: In http://docs.wizzup.org/simba/scriptr...etuptextfilter, how would I use a modified uptext filter? Like do I save it as a .pas file and put it in the same dir? How do I pass a modified uptext filter to rs_SetUpTextFilter?
    EDIT 2: NVM. rs_GetUpTextAtEx(7,7,false); seems to work perfectly.

    I'm trying to use simba for a private server and I'm trying to figure out a way to get uptext. Right now, I'm thinking of using GetTextAtExWrap to do this but I'm having some trouble with it.

    Code:
    function GetTextAtEx(const xs,ys,xe,ye, minvspacing, maxvspacing, hspacing,color, tol: integer;const font: string): string;
    1) What exactly do the spacings represent?
    2) I have

    Code:
    Writeln(GetTextAtExWrap(4,5,220,22,0,1,2,14475230,30,UpChars));
    but it produces "U s e / 2 m o r e o p t i o n s"
    How do I get rid of the unnecessary spacing and is there a way to allow other colors to be part of the OCR other than using GetTextAtExWrap twice? (It's supposed to be Use pot)
    Last edited by pitoms; 07-07-2012 at 12:40 AM.

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default




    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  3. #3
    Join Date
    Dec 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok thanks. I fixed that problem now but now I just have to tweak the colors and tolerances.

    I think that it might be better to use rs_GetUpText rather than do this. Right now I have
    Code:
    Writeln(GetTextAtExWrap(4,5,220,22,0,5,0,13817301,60,UpChars));
    Writeln(GetUpText);
    but the debug box results in
    Code:
    W.,thdraw 1 . / 5 more opt.,r
    ^^^^^^^^ ^ ^^^^^ ^ ^ ^^^^ ^^^^^^^
    Would anyone know how I could fix the ^^^s? I clearly have a close enough font since GetTextAtExWrap sorta works.

    edit: After looking at the docs, I think it might have something to do with the textfilters. Is there a way I can easily "update" the colors for whatever text filters rs_getuptext uses?
    EDIT 2: In http://docs.wizzup.org/simba/scriptr...etuptextfilter, how would I use a modified uptext filter? Like do I save it as a .pas file and put it in the same dir? How do I pass a modified uptext filter to rs_SetUpTextFilter?
    Last edited by pitoms; 07-06-2012 at 09:17 PM.

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
  •