BankPin

Methods to interact with the bank pin interface.

../../images/bankpin_interface.png

TBankPin type

Main record to interact with the BankPin interface.


BankPin.SetupInterface

procedure TBankPin.SetupInterface();

Internal method used to setup the TBankPin type coordinates. This is automatically called for you on the BankPin variable.


BankPin.IsOpen

function TBankPin.IsOpen(): Boolean;

Returns true if the bank pin is open.

Example:

WriteLn BankPin.IsOpen();

BankPin.WaitOpen

function TBankPin.WaitOpen(time: Integer = 600; interval: Integer = -1): Boolean;

Returns true if the bank pin opens within time milliseconds..

Example:

WriteLn BankPin.WaitOpen();

BankPin.IsLoading

function TBankPin.IsLoading(): Boolean;

Returns true if the bank pin is loading. The bank pin is loading when the interface is open but the pin numbers are not available yet.

Example:

WriteLn BankPin.IsLoading();

BankPin.WaitLoading

function TBankPin.WaitLoading(time: Integer = 600; interval: Integer = -1): Boolean;

Returns true if the bank pin finishes loading within time milliseconds.. For more information on bank pin loading read BankPin.IsLoading.

Example:

WriteLn BankPin.WaitLoading();

BankPin.FindDigit

function TBankPin.FindDigit(digit: Char): Integer;

Finds a bank pin digit.

Example:

WriteLn BankPin.FindDigit('5');

BankPin.ClickDigit

function TBankPin.ClickDigit(digit: Char): Boolean;

Finds a digit with BankPin.FindDigit and clicks it if it was found.

Example:

WriteLn BankPin.ClickDigit('5');

BankPin.GetDigitIndex

function TBankPin.GetDigitIndex(): Integer;

Returns the index of the next digit to enter.

Example:

WriteLn BankPin.GetDigitIndex();

BankPin.Enter

function TBankPin.Enter(pin: String): Boolean;

Handles entering the bank pin. Will do 4 attempts before terminating with a fatal error.

Example:

BankPin.Enter('0000');

BankPin variable

Global TBankPin type variable.