Access
All utils C++ functions are exposed to your Lua script via a single global table namedutils. You access individual values by using the dot (.) or bracket ([]) operator on this table.
Utils Usage Example
Functions
This section lists all available C++ functions exposed within the globalutils table. These functions provide general-purpose utilities, including debugging output, system information retrieval, and clipboard manipulation.
warn
Prints a warning message to the history window output section.error
Prints an error message to the history window output section.info
Prints an informational message to the history window output section.set_clipboard
Sets the system clipboard text to the specified string.get_process_id
Gets the target process ID. Returns the process ID as a number.get_delta
Gets the delta time (time elapsed since launch). Returns the delta time in seconds as a number.get_window_position
Gets the current window position on the screen. Returns a Vector2 containing the X and Y coordinates.get_window_size
Gets the current window size. Returns a Vector2 containing the width and height.get_window_rect
Gets the current window rectangle (position and size). Returns a Rect containing the window bounds.get_running
Checks if the application is currently running. Returnstrue if running, false otherwise.
get_focused
Checks if the window is currently focused. Returnstrue if focused, false otherwise.
get_open
Checks if the window is currently open. Returnstrue if open, false otherwise.