From bbc4f56336471cdb791b8efac09a10d4439a07ef Mon Sep 17 00:00:00 2001 From: Michel Pauwels Date: Tue, 4 Nov 2025 21:52:00 +0100 Subject: [PATCH] feat: add Back method to GrandExchangeHistory for navigation --- .../grandexchange/grandexchange_history.simba | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/osrs/interfaces/mainscreen/grandexchange/grandexchange_history.simba b/osrs/interfaces/mainscreen/grandexchange/grandexchange_history.simba index d0add9b1..27b94e2f 100644 --- a/osrs/interfaces/mainscreen/grandexchange/grandexchange_history.simba +++ b/osrs/interfaces/mainscreen/grandexchange/grandexchange_history.simba @@ -204,6 +204,25 @@ begin Result := Self.WaitOpen(2000); end; +(* +## GrandExchangeHistory.Back +```pascal +function TRSGrandExchangeHistory.Back(): Boolean; +``` +Attempts to click the back button: to return to the main Grand Exchange interface, returns `True` on success. + +Example: +```pascal +WriteLn GrandExchangeHistory.Back(); +``` +*) +function TRSGrandExchangeHistory.Back(): Boolean; +begin + if not Self.IsOpen() then Exit; + Mouse.Click(Self.ExchangeButton, EMouseButton.LEFT); + Result := GrandExchange.WaitOpen(2000); +end; + var (* ## GrandExchangeHistory variable