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:
|
Signature | hs.uielement:newWatcher(handler[, userData]) -> hs.uielement.watcher or nil |
---|---|
Type | Constructor |
Description | Creates a new watcher for the element represented by self (the object the method is being invoked for). 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: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:
|