SRL Archive - OSR Help

GetTextAtEx help


I Am Legend

2012-01-11 01:48:59

Some one help me make it work


I want to read the number on the screen ( the wilderness level )

this is not working for me at all .

cheers

StrToIntDef(GetNumbers(GetTextAtEx(B.X1 - 1 , B.Y1 - 1, 30, statChars,
False, False, 0, 0, Colors, 20, False, tr_Digits)), -1);

KingKong

2012-01-11 01:50:57

StrToInt(GetTextAtExWrap(688, 428, 720, 440, 0, 10, 1, 65535, 5, StatChars));

the first 4 numbers are the search area coords.

I Am Legend

2012-01-11 03:19:44

ok let me check if its working, jsut a question tho wats the difference between the normal ex and wrap ?

KingKong

2012-01-11 03:34:59

Basically the same thing:
http://docs.villavu.com/simba/scriptref/ocr.html#gettextatexwrap

I Am Legend

2012-01-12 06:48:15

hey i still cant get this to work , please help i attached a screenshot with it

KingKong

2012-01-12 06:50:40

you need to mess around with the spacing parameters and see what works best. Or use findtext and extract the number out of it.