Fwd Motion
2012-02-09 11:56:20
I noticed there's an InvMouse, but no BankMouse. So here's this bit…
(*
BankMouse
~~~~~~~~
.. code-block:: pascal
procedure BankMouse(BankSlot :integer);
.. note::
by Fwd Motion!
Example:
.. code-block:: pascal
if BankMouse(1) then
begin
ClickMouse2(false);
WaitOption('eposit', 500);
*)
Procedure BankMouse(BankSlot :integer);
var
BankBox: TBox;
X, Y: Integer;
begin
FixBank;
BankBox := BankIndexToMSBox(BankSlot);
GetMousePos(X, Y);
if (not PointInBox(Point(X, Y), BankBox)) then
MouseBox(BankBox.X1, BankBox.Y1, BankBox.X2, BankBox.Y2, mouse_move);
end;