We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question
0

Programmatically creation of macros with hotkeys

asked 2021-07-07 10:36:00 +0200

lvop gravatar image

updated 2021-07-08 08:59:57 +0200

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

edit retag flag offensive close merge delete

Comments

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.

Lupp gravatar imageLupp ( 2021-07-08 11:55:02 +0200 )edit

@Ivop,

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

Schiavinatto gravatar imageSchiavinatto ( 2021-07-08 15:07:59 +0200 )edit

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.

lvop gravatar imagelvop ( 2021-07-09 11:41:09 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-07-08 10:06:33 +0200

Kamil Landa gravatar image

updated 2021-07-20 09:55:55 +0200

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.

edit flag offensive delete link more

Comments

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

lvop gravatar imagelvop ( 2021-07-08 11:11:04 +0200 )edit

... 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 ...
(more)
keme gravatar imagekeme ( 2021-07-08 14:53:43 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2021-07-07 10:36:00 +0200

Seen: 96 times

Last updated: Jul 20