A generalized framework for working with OSX UI elements
Signature | hs.uielement.focusedElement() -> element or nil |
---|---|
Type | Function |
Description |
Gets the currently focused UI element |
Parameters |
|
Returns |
|
Source | extensions/uielement/libuielement.m line 12 |
Signature | hs.uielement:isApplication() -> bool |
---|---|
Type | Method |
Description |
Returns whether the UI element represents an application. |
Parameters |
|
Returns |
|
Source | extensions/uielement/uielement.lua line 14 |
Signature | hs.uielement:isWindow() -> bool |
---|---|
Type | Method |
Description |
Returns whether the UI element represents a window. |
Parameters |
|
Returns |
|
Source | extensions/uielement/libuielement.m line 29 |
Signature | hs.uielement:newWatcher(handler[, userData]) -> hs.uielement.watcher or nil |
---|---|
Type | Method |
Description |
Creates a new watcher |
Parameters |
|
Returns |
|
Source | extensions/uielement/libuielement.m line 86 |
Signature | hs.uielement:role() -> string |
---|---|
Type | Method |
Description |
Returns the role of the element. |
Parameters |
|
Returns |
|
Source | extensions/uielement/libuielement.m line 47 |
Signature | hs.uielement:selectedText() -> string or nil |
---|---|
Type | Method |
Description |
Returns the selected text in the element |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/uielement/libuielement.m line 65 |
© 2014–2017 Hammerspoon contributors
Licensed under the MIT License.
https://www.hammerspoon.org/docs/hs.uielement.html