boscolamhk
2014-12-29 23:49:38
I would like to move an iron ore from backpack to actionbar slot 2 and I try to use the following:
But the parameter inside dragMouse function is a TPoint instead of TBox….How to fix it?
if findDTM(ore.oreDTM, oreX, oreY, tabBackPack.getBounds()) then
begin
mouse(point(oreX, oreY));
if isMouseOverText(['re'], 2000) then
dragMouse(actionBar.getSlotBox(2))
else
begin
WriteLn('We cannot find the ore...Terminating Script.');
TerminateScript();
end;
end else;But the parameter inside dragMouse function is a TPoint instead of TBox….How to fix it?