Skip to content
Desktop inputOverview

iswindowactive

Checks whether a desktop window is active.

Details#

Returns whether the foreground window belongs to the current process. Unlike isrbxactive, this is a process ownership check and may include another window of that process.

Examples#

Example

Luau
print("Process window focused:", iswindowactive())