Options¶
The options file holds functions and procedures that are used for configuring runescape.
Keep in mind that the option-tab changes qute frequently in OSRS, so over time it’s more likely to get outdated.
type TRSOptions¶
The type that holds functions and properties of the Runescape options interface.
var Options¶
Variable that stores functions and properties of the Runescape options interface.
type EOptionsTab¶
A type that covers the internal tabs in TRSOptions: EOptionsTab = (optDisplay, optAudio, optChat, optControls)
Options.IsOpen¶
function TRSOptions.IsOpen(maxWait:Int32=0): Boolean;
Checks if the interface is already open.
Options.GetCurrentTab¶
function TRSOptions.GetCurrentTab(): EOptionsTab;
Returns which tab is currently active.
Options.SetCurrentTab¶
function TRSOptions.SetCurrentTab(Tab: EOptionsTab; tryTime:Int32=2000): Boolean;
Sets the current tab to the given Tab
Options.GetBrightness¶
function TRSOptions.GetBrightness(): Int32;
Returns the mainscreen brightness
Options.SetBrightness¶
function TRSOptions.SetBrightness(level: Int32; tryTime:Int32=2000): Boolean;
Sets the mainscreen brightness
type ERSZoomNotch¶
Zoom level notches.
ZOOM_LEVEL_0 = Zoomed out fully. ZOOM_LEVEL_50 = Default. ZOOM_LEVEL_100 = Zoomed in fully.
Options.FindZoomSlider¶
function TRSOptions.FindZoomSlider(out P: TPoint): Boolean;
Returns the middle of the green zoom slider.
Options.GetZoom¶
function TRSOptions.GetZoom: Int32;
Returns the current zoom level in 0..100 range. -1 if not found.
Options.SetZoom¶
function TRSOptions.SetZoom(Level: Int32): Boolean;
Sets the current zoom level by using the slider. 0..100 range.
Options.GetZoomNotch¶
function TRSOptions.GetZoomNotch: ERSZoomNotch;
Returns the current zoom notch. ZOOM_NOTCH_UNKNOWN if not either 0,25,50,75,100.
Options.SetZoomNotch¶
function TRSOptions.SetZoomNotch(Notch: ERSZoomNotch): Boolean;
Moves the zoom slider to the Notch position.
Options.ToggleAcceptAid¶
function TRSOptions.ToggleAcceptAid(enable:Boolean; tryTime:Int32=2000): Boolean;
Changes the state of the button to the given state.
Options.ToggleRun¶
function TRSOptions.ToggleRun(enable:Boolean; tryTime:Int32=2000): Boolean;
Changes the state of the button to the given state.
Options.ToggleChatEffects¶
function TRSOptions.ToggleChatEffects(enable:Boolean; tryTime:Int32=2000): Boolean;
Changes the state of the button to the given state.
Options.ToggleSplitPrivChat¶
function TRSOptions.ToggleSplitPrivChat(enable:Boolean; tryTime:Int32=2000): Boolean;
Changes the state of the button to the given state.
Options.ToggleProfanityFilter¶
function TRSOptions.ToggleProfanityFilter(enable:Boolean; tryTime:Int32=2000): Boolean;
Changes the state of the button to the given state.
Options.ToggleTimeoutNotice¶
function TRSOptions.ToggleTimeoutNotice(enable:Boolean; tryTime:Int32=2000): Boolean;
Changes the state of the button for “Login/Logout notification timeout” to the given state.
Options.ToggleShiftDrop¶
function TRSOptions.ToggleShiftDrop(enable:Boolean; tryTime:Int32=2000): Boolean;
Changes the state of the button for “Shift Drop” to the given state.