Hi Guys/Girls,
i have the following function that i use to load a dtm.
SCAR Code:
Function LoadDTM(what:String):Integer;
begin
case LowerCase(what) of
'bank' : Result := DTMFromString('78DA639CC5C4C0B0910105FCF9C304A619A17' + 'CC64944AAD98A5F0D003D2909D0');
'log' : Result := DTMFromString('78DA63DCC0C4C090C1C8800DC04419D700D5C' + '433629585AB990F549349400DC8AE42026A7602D5A4E2570300421E0' + '588');
end;
end;
is it possible to also free a dtm using the same function?
for example
SCAR Code:
procedure DTMWalk(whatDTM:string);
begin
Write('Trying DTM Walking')
if FindDTM(LoadDTM(whatDTM), x, y, MMX1, MMY1, MMX2, MMY2)then
begin
Mouse(x+10, y, 5, 5, true);
Flag;
end;
FreeDTM(LoadDTM(whatDTM));
end;
or will this result in two DTM's being loaded and only one being freed?