Display and UI

These global variables provide information about the display, window, and UI state of the OSL environment.

Window and Focus Variables

Variable
Type
Description

focused_application

String

Name of the currently focused application

focused_application_id

Number

ID of the currently focused application

is_origin_focused

Boolean

Whether the Origin environment has focus

window_top_index

Number

Z-index of the topmost window

Badges

Variable
Type
Description

badges

Object

A list of all currently accessible badges, along with their icn code

Examples

// Check if application has focus
if is_origin_focused (
  log "Origin has focus"
)

// Display current application
log "Current application: " ++ focused_application + " (ID: " ++ focused_application_id ++ ")"

Last updated

Was this helpful?