Jump to content
damagex

Reading text from another client

Recommended Posts

How do I read text from another clients chat. I got the following test script, but it gives me some weird results.

var
 Characters:integer;
 Text:String;

const
 FontName='Helvetica';
 FontSize=8;
 FontBold=False;
 FontItalic=False;
 FontUnderline=False;
 FontStrike=False;

begin
 Characters:=LoadCharsFromFont2(FontName,Fontsize,FontBold,FontItalic,FontUnderline,FontStrike);
 Text:=GetTextAtEx(300,300,50,Characters,False,False,0,1,0,32,False,tr_AllChars);
 WriteLn(Characters);
 WriteLn(Text);
end.

 

This script results:

Successfully compiled (31 ms)
0
#'  ¯                         
Successfully executed (63 ms)

 

I've tried diffrent fonts and sizes. Still no luck. Any idea?

Link to comment
Share on other sites

Is the text exactly at 300,300 ? if the text is at i.e 300,301 or 300,299 it might not work..

Well, the text is at like 0,300 to 500,700 but I can't seem to set a field.

Also try making Text an AnsiString, I doubt it'll make a difference, but you never know

Alright, i'll try to do that.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...