Programmatically creation of macros with hotkeys

Is there a possibility to export and import macros with hotkeys (Ctrl + s, etc)? Or create macros with hotkeyes using ActiveX in extrnal script?

You should be quite a bit more precise about your intentions.
From … to ?
You seem to put “creation” and “import/export” into the same bag. Why? How?
Do you actually want to “export” a macro (from a delivered document to a local library e.g.) or probably just the hotkey setting?
Features in this filed are, imo, related to serious questions about safety/security. Some must probably be restricted to not create dangerous vulnerabilities.
LibO is basically multi-platform. Leave ‘ActiveX’ where it belongs.

@Ivop,

It’s not safe, importing shortcuts (if you can) may overwrite shortcuts that user created for personal use. Use Buttons with Macros.

It is assumed that all of these manipulation with hotkeys will appear after warning and user’s consent. Users work in Windows, ActiveX is optional way. I interested any way to create macro with pre-installed hotkeys using Libre Office API.
Now I think what addition button in panel to contol only documents (not Libre Office global),including event hooking with same hotkey (Cntr + s to save, for example) is the best possible solution. Addition of this button will occur during our software installation.

It seems there isn’t a possibility to add hotkey to the Export/Import macros.

But under Windows you can use Autohotkey https://www.autohotkey.com - you can make script with hotkey, and it will send the click to the custom coordinates on the screen - on the icons for export/import macro.

Thank you for reply, but I involved in the development of universal software for all our customers, that’s why I can not use extra software

… I involved in the development of universal software for all our customers, that’s why I can not use extra software…

In that case, it may be a bad idea to base your solutions on ActiveX. As far as I have gathered, that is a more or less deprecated technology, which will work reliably only in a Microsoft context.

If you want useful response, you should amend your question (by editing it or commenting on it (not by adding an answer), to specify …

  • Directions of “universality”.
  • for all OS platforms
  • for all kinds of user (accessibility)
  • for any data
  • What do you have
  • external ActiveX macros running in IE,
  • some ActiveX runtime/plugin for Netscape (sic!)
  • ActiveX runtime for Mac
  • a wish to create macros
  • Who is your target audience? (customers)
  • Windows users
  • MacOS users
  • phone/tablet users
  • What do you want to do?
  • Import/install macros with predefined hotkeys
  • Configure hotkeys for data import
  • … or whatever and whatnot