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/internal.m |
| Signature | hs.uielement:isApplication() -> bool |
|---|---|
| Type | Method |
| Description | Returns whether the UI element represents an application. |
| Parameters |
|
| Returns |
|
| Source | extensions/uielement/init.lua |
| Signature | hs.uielement:isWindow() -> bool |
|---|---|
| Type | Method |
| Description | Returns whether the UI element represents a window. |
| Parameters |
|
| Returns |
|
| Source | extensions/uielement/internal.m |
| Signature | hs.uielement:newWatcher(handler[, userData]) -> hs.uielement.watcher or nil |
|---|---|
| Type | Method |
| Description | Creates a new watcher |
| Parameters |
|
| Returns |
|
| Source | extensions/uielement/internal.m |
| Signature | hs.uielement:role() -> string |
|---|---|
| Type | Method |
| Description | Returns the role of the element. |
| Parameters |
|
| Returns |
|
| Source | extensions/uielement/internal.m |
| Signature | hs.uielement:selectedText() -> string or nil |
|---|---|
| Type | Method |
| Description | Returns the selected text in the element |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | extensions/uielement/internal.m |