LordJashin
02-17-2012, 04:37 PM
EDIT: Problems Solved, scroll down to my 1st reply to see what I did
I have scoured search looking for this. Tried changing the original function, using other OCR functions, etc. I have two questions that I couldn't find the answer, or I am too much of a nub to figure out. :duh:
I made my own font set, Simba can read the text, put it in the Fonts folder. My code to load it.
GetClientDimensions(w, h);
Font := TFont.Create;
Font.Name := 'TerraChars';
LoadFont('TerraChars', False);
I figured out how to read text, but how do you find out where it is? TPA's I understand most of it except CHAR ex:
FindTextTPAEx(Color,Tol,xs,ys,xe,ye : integer;var x,y : integer; Txt, Chars : string; Action :fnct_ActionOptions ) : Boolean;
If i remember correctly Chars is any of the Runescape type font sets, like SmallChars, BigChars, etc how would I add my font to that. I think I tried adding it to the char array of them that had BigChars, etc in it.
I'm not scripting for RS, I want to read the text then find where its at on the screen, because this 3D game I'm scripting for. The text for NPCs is always the same size, font, color. And I want to click below the NPC's text. Please help.
I have scoured search looking for this. Tried changing the original function, using other OCR functions, etc. I have two questions that I couldn't find the answer, or I am too much of a nub to figure out. :duh:
I made my own font set, Simba can read the text, put it in the Fonts folder. My code to load it.
GetClientDimensions(w, h);
Font := TFont.Create;
Font.Name := 'TerraChars';
LoadFont('TerraChars', False);
I figured out how to read text, but how do you find out where it is? TPA's I understand most of it except CHAR ex:
FindTextTPAEx(Color,Tol,xs,ys,xe,ye : integer;var x,y : integer; Txt, Chars : string; Action :fnct_ActionOptions ) : Boolean;
If i remember correctly Chars is any of the Runescape type font sets, like SmallChars, BigChars, etc how would I add my font to that. I think I tried adding it to the char array of them that had BigChars, etc in it.
I'm not scripting for RS, I want to read the text then find where its at on the screen, because this 3D game I'm scripting for. The text for NPCs is always the same size, font, color. And I want to click below the NPC's text. Please help.