bugger0001
2010-03-01 13:43:04
Well, I think I ran into a bug there and I haven't got lazarus on my laptop to check it up…
EDIT: Doup, Simba too can open pascalscript files :p
If I do something like this:
As you can see, I called this function quite a few times :p
Anyways, at first it didn't use the params I gave and then after a few tries it used some of them and set some wrong and ended up giving me wrong results.
EDIT: Instead, do this:
EDIT: Doup, Simba too can open pascalscript files :p
If I do something like this:
Function SimbaSmeltingScreen: Boolean;
Begin
Result := GetTextAt(158, 367, 0, 0, 0, 128, 0, 4, 'CharsNPC') = 'What';
End;then in the debug I get this:[9, 443, 0, 3, 4, 0, 0, 80, 'SmallChars']
GetTextAt result: Welcome to RuneScape
[35, 429, 0, 3, 4, 0, 0, 80, 'SmallChars']
GetTextAt result: ?r?mF? lr?m ?ilv?r ?r?l 6?lJ Nir4ril
[318, 428, 0, 3, 4, 0, 0, 80, 'SmallChars']
GetTextAt result: I Nir4ril
[35, 429, 0, 3, 4, 0, 0, 80, 'SmallChars']
GetTextAt result: ?r?mF? lr?m ?ilv?r ?r?l 6?lJ Nir4ril
[318, 428, 0, 3, 4, 0, 0, 80, 'SmallChars']
GetTextAt result: I Nir4ril
[35, 429, 0, 3, 4, 0, 0, 80, 'SmallChars']
GetTextAt result: ?r?mF? lr?m ?ilv?r ?r?l 6?lJ Nir4ril
[318, 428, 0, 3, 4, 0, 0, 80, 'SmallChars']
GetTextAt result: I Nir4ril
[35, 429, 0, 3, 4, 0, 0, 80, 'SmallChars']
GetTextAt result: ?r?mF? lr?m ?ilv?r ?r?l 6?lJ Nir4ril
[318, 428, 0, 3, 4, 0, 0, 80, 'SmallChars']
GetTextAt result: I Nir4ril
[35, 429, 0, 3, 4, 0, 0, 80, 'SmallChars']
GetTextAt result: ?r?mF? lr?m ?ilv?r ?r?l 6?lJ Nir4ril
[318, 428, 0, 3, 4, 0, 0, 80, 'SmallChars']
GetTextAt result: I Nir4ril
[158, 367, 0, 3, 4, 128, 0, 4, 'CharsNPC']
GetTextAt result: What w
[158, 367, 0, 3, 4, 128, 0, 4, 'CharsNPC']
GetTextAt result: What w
[158, 367, 0, 3, 4, 128, 0, 4, 'CharsNPC']
GetTextAt result: What w
...
[158, 367, 0, 3, 4, 128, 0, 4, 'CharsNPC']
GetTextAt result: What w
[158, 367, 0, 3, 4, 128, 0, 4, 'CharsNPC']
GetTextAt result: What w
[158, 367, 0, 3, 4, 128, 0, 4, 'CharsNPC']
GetTextAt result: What wAs you can see, I called this function quite a few times :p
Anyways, at first it didn't use the params I gave and then after a few tries it used some of them and set some wrong and ended up giving me wrong results.
EDIT: Instead, do this:
Function SimbaSmeltingScreen: Boolean;
Begin
Result := GetTextAt(158, 367, 0, 3, 4, 128, 0, 3, 'CharsNPC') = 'What';
End;