Skip to content

Commit 9f017e7

Browse files
authored
Merge pull request #117 from Pauwelz/feature/gehistory-back
Add Back method to GrandExchangeHistory
2 parents e0189ec + 998b602 commit 9f017e7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

osrs/interfaces/mainscreen/grandexchange/grandexchange_history.simba

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,25 @@ begin
204204
Result := Self.WaitOpen(2000);
205205
end;
206206

207+
(*
208+
## GrandExchangeHistory.Back
209+
```pascal
210+
function TRSGrandExchangeHistory.Back(): Boolean;
211+
```
212+
Attempts to click the back button: to return to the main Grand Exchange interface, returns `True` on success.
213+
214+
Example:
215+
```pascal
216+
WriteLn GrandExchangeHistory.Back();
217+
```
218+
*)
219+
function TRSGrandExchangeHistory.Back(): Boolean;
220+
begin
221+
if not Self.IsOpen() then Exit;
222+
Mouse.Click(Self.ExchangeButton, EMouseButton.LEFT);
223+
Result := GrandExchange.WaitOpen(2000);
224+
end;
225+
207226
var
208227
(*
209228
## GrandExchangeHistory variable

0 commit comments

Comments
 (0)