Differentiate manual and programmatic menu item click event
Hello,
I have developed a acrobat plugin. Plugin adds a menu-item under Edit menu.
I am doing some operations on execution of this menu-item.
Now, I want to do these operations in two ways:
1. Do some operations on execution of the menu item. In this case, execution of this menu item will be done by a IAC program (Which works fine in my case)
2. Do some another operations on execution of the same menu item. In this case, execution of this menu item will be done MANUALLY (By user).
So, in the nutshell, execution of the menu item will be done in two ways, manually and programmatically.
So, How can I differentiate this behavior?
Thanks.
