Input

isrbxactive

Returns whether the current foreground window is the Roblox window found by Real.

Syntax

isrbxactive(): boolean
Aliases isgameactiveiswindowactive

Returns

NameTypeDescription
activebooleanTrue when GetForegroundWindow() returns the same HWND as the cached or newly found Roblox window window for the current process.

Description

Returns whether the current foreground window is the Roblox window found by Real. Real finds that window by enumerating windows for the current process and selecting a window whose class name is Roblox window. The function takes no arguments and returns false when no foreground window or matching Roblox window is available.

Call it without parameters. The function reads the needed context from the current runtime state.

It returns active (boolean). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = isrbxactive()
print(result)