OSL ‐ Default Variables - Mistium/Origin-OS GitHub Wiki

What are these?

Default OSL variables are variables specific to an OSL_window/OSL_process

They are like local variables that report on data about the process or about the process's container (the window)

Default OSL Variables:

Window Data

  • wincreatetime: The time when the window was created.

  • window_shown: Whether the background of the window is currently visible.

  • window_resizable: Whether the window can be resized by the user.

  • window_focused: Whether the current window is in focus (i.e., the application the user is currently interacting with).

  • window_width and window_height: The dimensions (in pixels) of the current window.

  • window_name: The name or title of the current window.

  • window_id: The identifier (ID) of the current window.

Editable

  • my_desktop: The desktop of the current window.

  • accent_colour: The accent color of the current application.

  • window_colour: The background color of the current window.

Window File Data (Uneditable)

  • passed_data: Data passed to the current application by its parent application.

  • current_file: The file ID of the current .app file.

  • file_dropped: The file ID of the last file that was drag-and-dropped onto the window.

Window Parent Data (Uneditable)

  • parent: The window ID of the current application's parent application.

  • parent_file: A JSON array of information about the current application's parent application.

  • parent_file_id: The file ID of the current application's parent application's file.

OSL Data (Uneditable)

  • mouse_x: The x position of the mouse in relation to the window

  • mouse_y: The y position of the mouse in relation to the window

  • current_colour: The colour of the last run colour command (hex code)