kazhual
2012-11-21 18:41:29
Hello,
I'm Having trouble reading a text in Runescape This is my script:
When I run the Script the "ItemBox" will leave the next part of the minigame picture:
The output will remain:
Can anyone help me out to get the text string ?
I dont really care what function i need to use as long as it will work :)
I'm Having trouble reading a text in Runescape This is my script:
program DeclarePlayers;
{$DEFINE SMART}
{$i srl/srl.simba}
var
x,y : integer ;
DTM1, DTM2 : integer ;
ItemBox : array[0..1] of Tpoint ;
textresult : string ;
begin
DTM1 := DTMFromString('mQwAAAHicY2ZgYHBkYmBwYYLQZowQbAnEy5cvZ/j79y8YcwHVwTAjEgYCAFnTCXw=');
DTM2 := DTMFromString('mQwAAAHicY2YAAmYGhr9MENqMEYItgXj58uUMf//+BWMuoDQMMyJhIAAAZvQJtQ==');
if ( FindDTM(DTM1,x,y,525,180,769,506 ) ) then begin
ItemBox[0] := Point( x, y ) ;
end;
if ( FindDTM(DTM2,x,y,525,180,769,506 ) ) then begin
ItemBox[1] := Point( x, y ) ;
end;
textresult := '-1' ;
Writeln( '************' ) ;
Writeln( textresult ) ;
Writeln( '************' ) ;
Writeln( '' ) ;
ItemBox[0].x := ItemBox[0].x + 51 ;
ItemBox[0].y := ItemBox[0].y + 4 ;
ItemBox[1].x := ItemBox[1].x - 8 ;
ItemBox[1].y := ItemBox[1].y + 22 ;
MoveMouse( ItemBox[0].x, ItemBox[0].y );
wait( 1000 ) ;
MoveMouse( ItemBox[1].x, ItemBox[1].y );
wait( 1000 ) ;
FreeDTM( DTM1 ) ;
FreeDTM( DTM2 ) ;
textresult := GetTextAtExWrap(ItemBox[0].x,ItemBox[0].y,ItemBox[1].x,ItemBox[1].y,10,50,2,7067128,20,SmallChars) ;
Writeln( '************' ) ;
Writeln( textresult ) ;
Writeln( '************' ) ;
Writeln( '' ) ;
end.When I run the Script the "ItemBox" will leave the next part of the minigame picture:

The output will remain:
************
-1
************
************
************
Successfully executed.
Can anyone help me out to get the text string ?
I dont really care what function i need to use as long as it will work :)