Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Observe Action

Enthusiast ,
Apr 19, 2010 Apr 19, 2010
  • Is it possible to be notified if an action has been invoked. This action is not part of my plug-in and I don't want to override the default implementation of the action, all I want to know is that the action has been invoked.
  • Is it possible to observe IActionManager to know every action that has been run. This would only be done for a real short time within the running of the application. There doesn't seem to any message broadcast when action is run. In debug I could trace actions, but that is probably done with TRACEFLOW macro

It may not be possible, but I'm just asking

TOPICS
SDK
517
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 19, 2010 Apr 19, 2010

Hi Steven

What about second question - if you have a debug version of InDesign u can trace all actions from Menu:

Test -> Trace -> Action

Regards

Bartek

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 19, 2010 Apr 19, 2010

You could observe kActionManagerBoss for kMenuManagerMenuStatusChangeMessage, protocol IID_IMENUMANAGER.

Unfortunately that does not give any hint about the actual action (the void* is null), and I have not tried keyboard shortcuts.

I'd also consider suppressed ui, but that is supposed to do its magic before invoke.

Do you want to see actions in general (e.g. for a kind of action recorder?) or a specific action? Most of the latter have much better own notifications in the model.

I think there are also some special tracing interfaces for system builders that want to analyse crash situations, but these are outside the regular SDK and I have not had the time to try them out so I can't tell whether they cover your problem. Too much scripting recently.

Dirk

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 19, 2010 Apr 19, 2010
LATEST

Thanks Dirk

Dirk Becker wrote:

You could observe kActionManagerBoss for kMenuManagerMenuStatusChangeMessage, protocol IID_IMENUMANAGER.

Unfortunately that does not give any hint about the actual action (the void* is null), and I have not tried keyboard shortcuts.

I'd also consider suppressed ui, but that is supposed to do its magic before invoke.

The problem is then it only gets when menu is clicked, but not when action is invoked with keyboard shortcut.

Dirk Becker wrote:

Do you want to see actions in general (e.g. for a kind of action recorder?) or a specific action? Most of the latter have much better own notifications in the model.

I'm thinking action recorder type of thing

I think there are also some special tracing interfaces for system builders that want to analyse crash situations, but these are outside the regular SDK and I have not had the time to try them out so I can't tell whether they cover your problem.

How do I get a hold of these headers?

Anyways, i'm not so optimistic about finding a solution, but any input will be appreciated

Steven

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines