Show / Hide Table of Contents

Method elm.Invoke


Overload

Performs the UI element's default action (see elm.DefaultAction). Usually it is "click", "press" or similar. Like a mouse click but without moving the mouse cursor or pressing mouse buttons.

public void Invoke()
Exceptions
AuException

Failed.

Remarks

Fails if the UI element does not have a default action. Then you can use elm.MouseClick, or try elm.PostClick, elm.Check, elm.SendKeys, other functions. The action can take long time, for example show a dialog. This function normally does not wait. It allows the caller to automate the dialog. If it waits, try elm.JavaInvoke or one of the above functions (elm.MouseClick etc).