Skip to main content
Inspiring
November 4, 2025
질문

Is it possible to create and select sets of shortcuts using a script or the C++ SDK?

  • November 4, 2025
  • 1 답변
  • 396 조회

The C++ SDK does contain relevant documentation, but
For example

 

IKBSCSetsManager::KBSCArea IShortcutManager::GetShortcutKBSCArea()

 

I don't know how to operate the IKBSCSetsManager. How do I obtain the interface?

1 답변

Inspiring
November 5, 2025

Hi,

 

I have never tried creating the shortcuts from the code, but you can get the access IShortcutManager.

IShortcutManager belongs to kActionManagerBoss.

 

InterfacePtr<ISession> iSession(::GetExecutionContextSession(), UseDefaultIID());
InterfacePtr<IApplication> iApplication(iSession->QueryApplication());
InterfacePtr<IActionManager> iActionManager(iApplication->QueryActionManager());
InterfacePtr<IShortcutManager> iShortcutManager(iActionManager, UseDefaultIID());

// Now you can use iShortcutManager

 

- Rahul Rastogi

Adobe InDesign SDK C++ Custom Plugin Solution Architect

 

Inspiring
November 5, 2025

Thank you.
Assuming IShortcutManager has been obtained,
how do I obtain IKBSCSetsManager?

Inspiring
November 5, 2025

IKBSCSetsManager belongs to kWorkspaceBoss

 

InterfacePtr<ISession> iSession(::GetExecutionContextSession(), UseDefaultIID());
InterfacePtr<IWorkspace> iWorkspace(iSession->QueryWorkspace());
InterfacePtr<IKBSCSetsManager> iSetsManager(iWorkspace, UseDefaultIID());

// now, you can use iSetsManager