SRL Archive - OSR Help

Fix Uptext


Footy

2012-07-17 16:50:53

I was wondering how to manually fix isuptext, I cant work my maple chopper withount it. Thanks guys!

Caotom

2012-07-22 06:01:19

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
(*
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

P1ng

2012-07-22 06:21:49

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.
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?

Wizzup?

2012-07-22 07:27:06

I already posted a fix for this somewhere. http://villavu.com/forum/showthread.php?p=1067684#post1067684

Footy

2012-07-22 10:03:45

I asked this last week, I already got help from someone else. Thanks anyways guys!