Results 1 to 5 of 5

Thread: Fix Uptext

  1. #1
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Fix Uptext

    I was wondering how to manually fix isuptext, I cant work my maple chopper withount it. Thanks guys!
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  2. #2
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    You could try creating your own font set (you can take a look at this tutorial) or simply using the normal uptext fonts and then using
    Simba Code:
    (*
    FindTextEx
    ~~~~~~~~

    .. code-block:: pascal

        function FindTextEx(var cx, cy: Integer; txt,font: TStringArray; xs, ys, xe, ye: Integer): Boolean;

    Searches for text or texts in specified box with specified font or fonts returns
    true on first find of one of the texts with one of the fonts in the specified
    box, returns x, y values aswell.

    .. note::

        by Stupid3ooo, modified by LordJashin

    Example:

    .. code-block:: pascal

        var
          x, y, w, h: Integer;
          fonts, txts: TStringArray;
        begin
          fonts := ['MyOwnFontSet', 'SmallCharacters'];
          txts := ['Simba', 'HakunaMatata'];

          SetDesktopAsClient;
          GetClientDimensions(w, h);

          if FindTextEx(x, y, txts, fonts, 0, 0, w - 1, h - 1) then
            MoveMouse(x, y);
        end.
    *)
    Or one of its other forms (like FindText).

    ~Caotom

  3. #3
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    I can't imagine the whole font will need to be updated, probably just the position of it.
    This is just an example of the function you might use, fill in the x and y co-ordinates yourself and it should work just fine.
    Simba Code:
    function PGetUpText: string;
    begin
      Result := rs_GetUpTextAt(x co-ord, y co-ord);
    end;

    Else you could try making a very detailed DTM of the UpText?

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

    Default

    I already posted a fix for this somewhere. http://villavu.com/forum/showthread....84#post1067684



    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)

  5. #5
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I asked this last week, I already got help from someone else. Thanks anyways guys!
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

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
  •