rj
2013-01-01 16:37:32
Getting this error, I am testing out if my DTM's are accurate enough in my include, Is there anyway I can input the DTM name and it click the DTM. I tried to do it like this but I am not sure if it is possible:
program Test;
{$i srl/srl.simba}
{$include SoulSplit/SoulInclude.simba}
var
DTMClick: string;
procedure ClickDTM;
var
x, y: integer;
begin
if FindDTM((StrToInt(DTMClick)), x, y, SS_IX, SS_IY, SS_IX2, SS_IY2) then
begin
mmouse(x, y, 1, 1);
wait(randomrange(150, 250));
ClickMouse2(mouse_left);
end
else
Writeln('DTM not found!');
end;
procedure AskDTM;
begin
if (InputQuery('DTM To click?', 'DTM:', DTMClick)) then
ClickDTM;
end;
begin
MouseSpeed := 15;
SetupSoulInclude;
AskDTM;
end.