Jagex_Fagex
2006-03-20 01:56:49
FindText(var cx, cy : Integer; txt : String; font, xs, ys, xe, ye : Integer) : Boolean;
i need to know what i put in for cx, cy and font thanks
XxKanexX
2006-03-20 02:02:58
cx and cy are where to save the co-ordinates of the text if found.
XxKanexX
2006-03-20 02:11:04
not sure sorry. Never used it.
I think it means like characters.
var
Chrs: integer;
Chrs:= LoadChars(Bla..?);
Look in some scripts or includes, they normally have them at the beggining.
WT-Fakawi
2006-03-20 03:41:13
look @ Globals.scar: here are the fonts…
var UpChars, SmallChars, StatChars , NpcChars: Integer;
so:
UpChars are the characters found in the upper right box (and the screen too)
SmallChars are the chatchars
StatChars are the stats chars (aint that the same font as smallchars guys?)
NPCChars is the new TalkingPNC font.
FindText(var x,y,'findme',UpChars,x1,x1,x2,y2)
Var x,y, means it returns a value in x,y (the coordinates of the found text)
rest is pretty self explainatory….
see also ClickText and IsUpText