With functions win and child, if flag 0x8000 is used, x is interpreted as address of a callback function. When searching for window, win and child functions enumerate top-level or child windows, starting from topmost. The callback function is called for each matching window. The callback function must begin with
function# hwnd cbParam
hwnd - handle of the found window.
cbParam - y argument of win or child.
The callback function can return 1 to continue enumeration or 0 to stop (let win or child return hwnd). For example, it can test some additional window properties (rectangle, text inside, etc) and, if they match, return 0, else return 1.
Similarly, with functions acc and Acc.Find, the callback function must begin with
function# Acc&a level cbParam
a - the found object.
level - its level in the hierarchy. If class is specified, it is level beginning from that child window. When searching in web page (flag 0x2000), it is level from the root object of the web page (DOCUMENT or PANE).
cbParam - y argument of acc.
The callback function can return 0 to stop searching, 1 to continue and search possible children, or 2 to continue and skip children.
To call the callback function for all windows or objects, all other arguments should be empty ("" or 0). With win, to include hidden windows, insert opt hidden 1 before.