BankPin

Methods to interact with the bank pin interface.

_images/bankpin_interface.png

TRSBankPin

Main record to interact with the BankPin interface.


BankPin.SetupInterface

procedure TRSBankPin.SetupInterface();

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


BankPin.IsOpen

function TRSBankPin.IsOpen(): Boolean;

Returns true if the bank pin is open.

Example:

WriteLn BankPin.IsOpen();

BankPin.WaitOpen

function TRSBankPin.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 TRSBankPin.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 TRSBankPin.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 TRSBankPin.FindDigit(digit: Char): Integer;

Finds a bank pin digit.

Example:

WriteLn BankPin.FindDigit('5');

BankPin.ClickDigit

function TRSBankPin.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 TRSBankPin.GetDigitIndex(): Integer;

Returns the index of the next digit to enter.

Example:

WriteLn BankPin.GetDigitIndex();

BankPin.Enter

function TRSBankPin.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 TRSBankPin variable.