SRL Archive - NOTA

IsTextInAreaEx Bug?


SirGuy

2009-09-20 07:57:48

I didn't know where to post this. So it came here:

program NewBug;
var i,x,y,MyChars:integer;
begin
ClearDebug;
i:=0;
repeat
if(IsTextInAreaEx(1,1,2,2,x,y,'Text',0,MyChars,false,false,0,0,0))then
writeln('found');
writeln(inttostr(x) + ',' + inttostr(y));
i:=i+1;
until(i>=10)
end.

This is the output:

1,1
2,2
3,3
4,4
5,5
6,6
7,7
8,8
9,9
10,10
Successfully executed

As far as I know this should search the box (1,1 to 2,2) for 'Text' 10 times. When it doesn't find 'Text' the values for x and y should stay 0,0 each time (or maybe re-set to (2,2) each time because that's the last pixil checked?). But that doesn't happen…Does anyone know why the x,y values change with each repeat?

Thanks for the help.


BTW- I've tried this with all sorts of values/strings/etc. None of it changes the results.
Another BTW- I'm not looking for a workaround or anything. I'd just like to understand why x and y 'travel'

Nava2

2009-09-20 08:12:10

x and y shoudl stay at the original values input as long as the text does not move.

So yes, this may be a bug that fail Freddy needs to fix.

SirGuy

2009-09-22 01:19:23

ok, thanks for the info. ;)

YoHoJo

2009-09-22 02:31:45

lol@ FailFreddy <3