SRL Archive - Help

How to find this text?


bg5

2012-03-04 19:47:18

I would try to FindText in ChatBox ,but what font is it?


YoHoJo

2012-03-04 19:50:02

If you just want to know weather or no that screen is up, just use a getcolor. I think that black color of the text is always 0, so you can just use
If GetColor(234, 234) = 0 Then
TypeSend('28')
something like that.

Didn't really answer your question :p, but that is a fast and easy way to detect if the screen is up.

Brandon

2012-03-04 20:01:20

get text at..

execregexpr('', textugot)

bg5

2012-03-04 20:05:22

@YoHoJo
Yes ,but chat box is usually filled with text ,wich can mess it up. Other similar thing is to use DTM ,but I would like to avoid them.
@ggzz

But GetTextAt still need font name.

Brandon

2012-03-04 20:16:36


{$I SRL/SRL.Simba}

Function Find: Boolean;
var
str: String;
begin
str:= GetTextAtExWrap(353, 338, 604, 355, 0, 5, 2, 0, 20, 'UpcharsEx');
result:= ExecRegExpr('ithdraw', str);
end;

begin
setupsrl;
find;
end.

bg5

2012-03-04 20:28:03

Thx ,UpcharsEx works