object = accDialog(wndID);
Will search for a child accessible object having the ROLE_SYSTEM_DIALOG role.
Represents a dialog or a message box object. If the dialog contains a default button (such as OK), then the default action (accDoDefaultAction) is to click it. The accName property of a dialog returns the text in its title bar.
wnd Overview | MS Accessibility