> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# isrbxactive

> 返回 current foreground window 是否为 Real 找到的 Roblox window。Real 会 enumerating 当前进程的 windows，并选择 class name 为 Roblox window 的 window。该 function 不接受 arguments，当没有 foreground window 或 matching Roblox window 可用时返回 false。

<div className="real-function-page">
  ```lua theme={null}
  isrbxactive(): boolean
  ```

  ## 别名

  * `isgameactive`
  * `iswindowactive`

  ## 返回值

  <ResponseField name={"active"} type={"boolean"}>
    当 GetForegroundWindow() 返回的 HWND 与当前进程 cached 或 newly found 的 Roblox window window 相同，则为 True。
  </ResponseField>
</div>
