#hs.uielement
A generalized framework for working with OSX UI elements
#Submodules
#API Overview
Functions - API calls offered directly by the extension
Methods - API calls which can only be made on an object returned by a constructor
#API Documentation
#Functions
#Methods
| | | | --------------------------------------------|-------------------------------------------------------------------------------------| | Signature | hs.uielement:newWatcher(handler[, userData]) -> hs.uielement.watcher or nil
| | Type | Method | | Description | Creates a new watcher | | Parameters |
- A function to be called when a watched event occurs. The function will be passed the following arguments: element: The element the event occurred on. Note this is not always the element being watched. event: The name of the event that occurred. watcher: The watcher object being created. userData: The userData you included, if any.
- an optional userData object which will be included as the final argument to the callback function when it is called.
- An
hs.uielement.watcher
object, ornil
if an error occurred