cp.ui.Window.findSectionUI(windowUI, sectionID) -> hs._asm.axuielement
axuielement
for the specified sectionID
, if present in the provided axuielement
windowUI
.AXWindow
axuielement
to search in.SectionUniqueID
.axuielement
, or nil
.cp.ui.Window.matches(element) -> boolean
cp.ui.Window(cpApp, uiProp) -> Window
cpApp
- a cp.app
for the application the Window belongs to.uiProp
- a cp.prop
that returns the hs._asm.axuielement
for the window.Window
instance.cp.ui.Window.alert <cp.ui.Alert>
cp.ui.Window.exists <cp.prop: boolean; read-only>
true
if the window exists. It may not be visible.cp.ui.Window.focused <cp.prop: boolean>
true
if the window has mouse/keyboard focused.cp.ui.Window.frame <cp.prop: hs.geometry rect>
hs.geometry
rect value describing the window's position.cp.ui.Window.hsWindow <cp.prop: hs.window; read-only>
hs.window
instance for the window, or nil
if it can't be found.cp.ui.Window.id <cp.prop: string; read-only>
nil
if the window is not currently visible.cp.ui.Window.isFullScreen <cp.prop: boolean>
true
if the window is full-screen.cp.ui.Window.isShowing <cp.prop: boolean; read-only; live?>
Window
is currently showing on screen.cp.ui.Window.minimized <cp.prop: boolean>
true
if the window exists and is minimised.cp.ui.Window.UI <cp.prop: hs._asm.axuielement: read-only; live?>
axuielement
for the Window.cp.ui.Window.visible <cp.prop: boolean; read-only>
true
if the window is visible on a screen.cp.ui.Window:close() -> boolean
true
if the window was successfully closed.cp.ui.Window:doClose() -> cp.rx.go.Statement <boolean>
Statement
to execute, resolving to true
if the window is closed successfully, or false
if not.cp.ui.Window:doFocus() -> cp.rx.go.Statement
Statement
to execute, which resolves to true
if the window was successfully focused, or false
if not.cp.ui.Window:findSectionUI(sectionID) -> hs._asm.axuielement
SectionUniqueID
value and returns the matching axuielement
value.axuielement
, or nil
.cp.ui.Window:focus() -> boolean
true
if the window was successfully focused.cp.ui.Window:notifier() -> cp.ui.notifier
notifier
that is tracking the application UI element. It has already been started.cp.ui.Window:snapshot([path]) -> hs.image | nil
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Method | | Description | Takes a snapshot of the UI in its current state as a PNG and returns it. | | Parameters |.png
).