Yanhua
2011-12-16 20:45:06
Hey guys,
I've been making a simple DTM script that will identify Tuna in bank and the withdraw them until inventory is full.
I need a bit of help on what code to use for "Keep clicking until inventory is full"
Here is what I have so far.
Thanks
I've been making a simple DTM script that will identify Tuna in bank and the withdraw them until inventory is full.
I need a bit of help on what code to use for "Keep clicking until inventory is full"
Here is what I have so far.
program Tuna;
{$i SRL\SRL.scar}
Var
Tuna, X, Y: Integer;
begin
SetupSRL;
Tuna := DTMFromString('mwQAAAHic42RgYOABYjYg5gNiMSAWB2JBIOZggABGIOYGYhYgZoKKcUPVi0AxJxD3d3ZCVeDDhAEjERgOAEHKAoY=');
if FindDTM(Tuna, X, Y, MSX1, MSY1, MSX2, MSY2) Then
begin
writeln('Found Tuna, clicking on it.');
MMouse(X, Y, 5, 5);
Wait(10+random(10))
If isUptext('aw Tun') Then
Begin
Wait(10+Random(100));
Mouse(X, Y, 0, 0, True)
//Until(What to put in here?)
end;
FreeDTM(Tuna);
end.
Thanks