This project is read-only.



Causes a button to be clicked programmatically, without user intervention.


of_clickItem(Long item)
of_clickItem(String item)


Name Description
item The name or index of button to be clicked. The name of the button is the name the programmer gave when of_addItem was called or when of_setText was last called. The name is the text displayed for a toolbar when display text is enabled. The index of the button is the same as the value returned when of_addItem was called

Return Value

Returns a long indicating the result of the call, ALLOW (1) if the call succeeded or PREVENT (-1) if there was an error.


Use this method when you want to execute the script associated with a button without user intervention.

In order to use this method, the item must be enabled and visible. If it is not, an error message is displayed and PREVENT is returned.

This method is maintained for backward compatibility with previous versions of the toolBar. Its use has been superceded by of_clickButton.



See Also

Last edited Sep 24, 2016 at 2:58 PM by cjharris02892, version 7