Window#

class pixel_forge.Window(name: str)#

Window abstraction for the Windows operating system.

Windows can be used as capture target for the Capture class.

property name#

The window name.

property valid#

True if the window is still valid (i.e., open), else False.

pixel_forge.foreground_window()#

Get the current foreground window.

Returns:

The foreground window.

Raises:

RuntimeError – No foreground window was found.

pixel_forge.enumerate_windows()#

Create a list of all windows that are currently available.

Returns:

The list of all windows.

Raises:

RuntimeError – If the window enumeration fails.