docs » hs.uielement
A generalized framework for working with OSX UI elements
- Functions - API calls offered directly by the extension
- focusedElement
- Methods - API calls which can only be made on an object returned by a constructor
- isApplication
- isWindow
- newWatcher
- role
- selectedText
Signature | hs.uielement.focusedElement() -> element or nil |
---|---|
Type | Function |
Description | Gets the currently focused UI element |
Parameters |
|
Returns |
|
Signature | hs.uielement:isApplication() -> bool |
---|---|
Type | Method |
Description | Returns whether the UI element represents an application. |
Parameters |
|
Returns |
|
Signature | hs.uielement:isWindow() -> bool |
---|---|
Type | Method |
Description | Returns whether the UI element represents a window. |
Parameters |
|
Returns |
|
Signature | hs.uielement:newWatcher(handler[, userData]) -> hs.uielement.watcher or nil |
---|---|
Type | Method |
Description | Creates a new watcher |
Parameters |
|
Returns |
|
Signature | hs.uielement:role() -> string |
---|---|
Type | Method |
Description | Returns the role of the element. |
Parameters |
|
Returns |
|
Signature | hs.uielement:selectedText() -> string or nil |
---|---|
Type | Method |
Description | Returns the selected text in the element |
Parameters |
|
Returns |
|
Notes |
|