Window
Type: Window
Script class for Window utilities.
A global 'window' object is provided to access these functions and the 'workpage'.
var button = window.findViewByID("do_not_press"); var button2 = window.do_not_press; // shorthand
var button = window.do_not_press; // shorthand
Properties
Property | Description |
---|---|
| Since version 4.04.23, view IDs may be accessed directly instead of through findViewByID. Assignment to an unspecified ID shall set the script id of the view being assigned. |
Methods
Method | Description |
---|---|
findViewByID(id)
| Searches child views for the first one with a script ID that matches 'id' (set via view properties). Returns a reference to the view, or 'null' if nothing found. |
findViewByTitle(title)
| Searches child views for the first one with a title that matches 'title'. Returns a reference to the view, or 'null' if nothing found. |
setRefreshTimer(callback)
| Sets a callback function to be called periodically, dependent upon the user interface update rate setting in general preferences. Typically around 25Hz. To cancel the timer, call this function with a 'null' argument. |