Log in

View Full Version : Finding a bitmap in a specific area?



crapkiller
04-17-2007, 03:51 PM
Is there a way to find a bit map in a specific area? Because i am trying to make a fire making script and i thought it could find the bitmap saying you made a fire in the Messagebox. But it needs to be searching the area that it firsts come up. Because it could find the words from another log. If this makes any sense. Or if that isnt possible is it possible to get the words from the message box on a specific line? Like, say this is the message box from RS:

_________________________
|not here.....................................|
|not here.....................................|
|not here.....................................|
|Not from here.............................|
|I need the words from here.......|
-----------------------------------------

Are either of these possible?

Pentti
04-17-2007, 03:53 PM
function FindBitmapIn(bitmap: Integer; var x, y: Integer; x1, y1, x2, y2: Integer): Boolean;

but if you want to search for words, use Inchat function.

crapkiller
04-17-2007, 05:01 PM
Ownage. Thanks a bunch Pentti