Method elm.fromWindow
Overload
Gets UI element of window or control. Or some its standard part - client area, titlebar etc.
public static elm fromWindow(wnd w, EObjid objid = EObjid.WINDOW, EWFlags flags = 0)
Parameters
w (wnd)
Window or control. |
objid (EObjid)
Window part id. Default EObjid.WINDOW. Also can be a custom id supported by that window, cast int to EObjid. |
flags (EWFlags)
Flags. |
Returns
Exceptions
AuWndException
Invalid window. |
AuException
Failed. For example, window of a higher UAC integrity level process. |
ArgumentException
objid is QUERYCLASSNAMEIDX or NATIVEOM. |
Remarks
Uses API AccessibleObjectFromWindow.