Mr. Doctor
2010-01-25 18:55:23
I made a DTM of a bank symbol for the MiniMap. I did this because some people have lag problems and SCAR freezing. Here is both of my procedures,
It does writeln yes but does not click the symbol. Any idears? Do I have incorporate both into one procedure?
function BankSym : boolean;
var
BSM, x, y : integer;
begin
BSM := DTMFromString('78DA63FCC2C4C0709D0105BCBFA008A619A17' +
'CC6DF4035D718D00023AA1A90391708A8798B6917869AF7403577' +
'08A8F949841A907BEEE1570300AFC40E99');
Result := FindDTM( BSM, x, y, MMX1, MMY1, MMX2, MMY2);
end;
procedure SymTest;
var
X, Y :integer;
begin
if(BankSym)then
begin
Writeln('Yes');
Mouse( X, Y, 2, 2, True);
end;
end;
It does writeln yes but does not click the symbol. Any idears? Do I have incorporate both into one procedure?