Doing Stuff to Windows¶
Windows in
Windows are represented as a
Window
. 💩
In systa
the various windows on your system are represented and controlled by
instances of the Window
class.
Getting a Window¶
There’s various ways you can get a Window
instance. You can just
create one if you know there is going
to be only one matching window on your system.
>>> from systa.windows import Window
>>> Window("Untitled - Notepad")
Window(handle=...)
You also get lists of Window
objects back from current_windows
objects as
described in Finding Windows.
Manipulating Windows¶
You can do stuff to Window
objects. Where it makes sense you just set
attributes instead of calling methods. For example, you can minimize a window like so:
>>> notepad = Window("Untitled - Notepad")
>>> notepad.minimized
False
>>> notepad.minimized = True
>>> notepad.minimized
True