Skip to main content
Known Participant
January 30, 2017
Question

Differentiate manual and programmatic menu item click event

  • January 30, 2017
  • 2 replies
  • 642 views

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.

This topic has been closed for replies.

2 replies

Legend
February 2, 2017

Just read the AVMenuItem method names, it should be clear which method is used to tegister such a callback. There is no 'set visible' call.

lrosenth
Adobe Employee
Adobe Employee
January 30, 2017

There are two common ways to handle this:

1) Invisible menu item that the IAC app calls instead of the standard one

2) Use JavaScript bridge to have the external app set some variable that the plugin checks

Known Participant
January 31, 2017

In the second case, what do you mean by JavaScript bridge?

Known Participant
January 31, 2017

How can I make the menu item invisible?

I can't see option to make the menu item invisible.