SRL Archive - OSR Help

Detecting Text


halgboy_tbc

2012-05-18 17:44:59

Edit:I found a way using another function, but if I was doing anything wrong below, please let me know.

I can't seem to be able to properly find the proper chat font of the special attack bar number.
I have tried a variety I don't know the font.

function CheckSpecial:boolean;
begin
result := findTextTPAmulti(13883861, 5, 658, 412, 707, 432, ['60','65','70','75','80','85','90','95','100'], statchars, nothing);
end;

Can anyone help me detect the font with that function or suggest another way that I can do it?

Le Jingle

2012-05-18 18:17:09

It's UpChars text, referring to the fonts folders within Simba.

Brandon

2012-05-18 19:02:31

gettextatexwrap.

shiningwhite

2012-05-20 03:24:27

you can use DTM's to check the Spec bar.

I know that's how ChaosMossKiller does it at least.

NKN

2012-05-20 19:29:00

GetTextAtExWrap

It returns the string… so like this:


Percentage := GetTextAtExWrap(The Numbers and stuff in here)

Percentage would be that string that it returns.

smurg

2012-05-21 11:24:15

I have been resorting to using the easiest methods possible.

CountColorTolerance for the green bar.