Log in

View Full Version : How to find this text?



bg5
03-05-2012, 12:47 AM
I would try to FindText in ChatBox ,but what font is it?

http://puu.sh/ju1q

YoHoJo
03-05-2012, 12:50 AM
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
03-05-2012, 01:01 AM
get text at..

execregexpr('', textugot)

bg5
03-05-2012, 01:05 AM
@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
03-05-2012, 01:16 AM
{$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
03-05-2012, 01:28 AM
Thx ,UpcharsEx works