l6bustank
2012-09-14 05:52:10
Had some spare time and decided to make my ban-machine of a selling script to sth I can actually use. I ran into this problem:
When my script is about to repeat the selling 500 items procedure, it only does it once (sells 500 once), then moves the mouse to the upper right corner of the main screen and leaves it there forever.
The mouse movement to the upper right corner of the main screen also happens once, right before it sells 500 items (once), but then it comes back to selling.
What should I do to make things work?
My current procedure:
When my script is about to repeat the selling 500 items procedure, it only does it once (sells 500 once), then moves the mouse to the upper right corner of the main screen and leaves it there forever.
The mouse movement to the upper right corner of the main screen also happens once, right before it sells 500 items (once), but then it comes back to selling.
What should I do to make things work?
My current procedure:
procedure Sell;
var
RightClickSell, x, y : Integer;
begin
FindNormalRandoms;
RightClickSell := DTMFromString('mlwAAAHicY2dgYMgC4g4gbgfiTCD2AGIvIM4G4gVAPAOIl0PxUii/H4gNVKUZVGTFGfIMBcDYxkAVzFeQFGZgBcrjwox4MBQAAGsSCr4=');
if FindDTM(RightClickSell, x, y, MSX1, MSY1, MSX2, MSY2)then
begin
Writeln('found the button');
Mouse(x, y, 5, 5, false);
Wait(RandomRange(107, 193));
ChooseOption('ell 500');
Wait(RandomRange(200, 400));
Antiban;
end;
FreeDTM(RightClickSell);
end;
//The part of my main loop, concerning the procedure:
repeat
Sell;
until(InvCount = 0);
end.