Jump to content
Ndogg

LoadChars

Recommended Posts

Is this close to the right way of reading text?

 

program New;
var
UpChars,x,y,text,text1:Integer;
begin

UpChars:=LoadCharsFromFont2('RuneScape Small Regular',3,False,False,False,False); //Loads a runescape font I downloaded

text:=CreateBitmapMaskFromText('Bank',UpChars);
WriteLn(FindBitmapMaskTolerance(text,x,y,0,0,300,100,130,130)); //Checks for Bank in the upper right hand corner

text1:=CreateBitmapMaskFromText('k',UpChars);
WriteLn(FindBitmapMaskTolerance(text1,x,y,0,0,300,100,130,130)); //Checks for k in the upper right hand corner

WriteLn(GetTextAtEx(9, 9, 130, UpChars, True, False, 0, 1, -1, 20, False, tr_Letters)); //Trys to read text
end.

 

Heres a link to the font...

https://sites.google.com/site/interactiverune/kits/fonts

The font I used is at the very bottom

 

 

This script just returns stuff like 'HEEHEEEEEEEEEEEEEEEE'

 

 

EDIT: and I cant use the OSI functions for this since I am playing on a Runescape private server.

Edited by Ndogg
Link to comment
Share on other sites

Wow, Way to much work bud, Just use IsupText(); example below

 
Program New;
{$DEFINE RS2}
{.include OSI\OSI.scar}

begin
If (isuptextMulti(['ew','hop']) = True) then       //or isuptest('Yew'); < instead of isuptextmulti();
  Writeln('Found Up Text Yew Tree')
 else
  Writeln('Didnt Find Yew Tree');
end.

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...