damagex Posted September 7, 2011 Share Posted September 7, 2011 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? Quote Link to comment Share on other sites More sharing options...
Zyt3x Posted September 7, 2011 Share Posted September 7, 2011 Is the text exactly at 300,300 ? if the text is at i.e 300,301 or 300,299 it might not work.. Quote Link to comment Share on other sites More sharing options...
FHannes Posted September 7, 2011 Share Posted September 7, 2011 Also try making Text an AnsiString, I doubt it'll make a difference, but you never know Quote Link to comment Share on other sites More sharing options...
damagex Posted September 7, 2011 Author Share Posted September 7, 2011 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. Quote Link to comment Share on other sites More sharing options...