Rick
2010-08-05 20:40:45
When WithdrawEx is used in conjunction with WithdrawItemEx the mouse will hover the IdentType (BMP, DTM, Mask, Colour) to check for the correct UpText, then move the mouse again to withdraw Amount.
Nothing big, but I'm sure most of you don't consistently hover your item then move the mouse again to withdraw it.
WithdrawEx:
becomes:
Nothing big, but I'm sure most of you don't consistently hover your item then move the mouse again to withdraw it.
WithdrawEx:
BBox := BankIndexToMSBox(BankPointToBankIndex(Point(Col, Row)));
MouseBox(BBox.X1 + 5, BBox.Y1 + 5, BBox.X2 - 5, BBox.Y2 - 5, 3);
becomes:
var
BBox: TBox;
x, y: Integer;
...
BBox := BankIndexToMSBox(BankPointToBankIndex(Point(Col, Row)));
GetMousePos(x, y);
if not InRange(x, BBox.X1, BBox.X2) and not InRange(y, BBox.Y1, BBox.Y2) then
MouseBox(BBox.X1 + 5, BBox.Y1 + 5, BBox.X2 - 5, BBox.Y2 - 5, 3);