Daher
09-06-2012, 02:24 PM
how do i use DTMFromString to find a specify item in a private server?
Le Jingle
09-06-2012, 02:29 PM
Use the DTM editor within simba to obtain the DTMFromString to be used.
Then set something up like:
function findDTM1: boolean;
var
a, b, x, y, aDTM: integer;
begin
result := false;
GetClientDimensions(w, h);
aDTM := DTMFromString('... you get a string here from the editor ... ');
if FindDTM(x, y, aDTM, 0, 0, w-10, h-10) then
begin
mouse(x, y, 0, 0, mouse_left);
result := true;
end;
FreeDTM(aDTM);
end;
Runaway
09-06-2012, 03:47 PM
Check out Yohojo's DTM tutorial (http://villavu.com/forum/showthread.php?t=564) if you're having any trouble using Jingle's code. It will show you exactly how to create a DTM.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.