Notifications
Clear all

[Closed] Temporary hotkeys?

Anyone know of a good way to temporarily override existing hotkeys with custom macros? Basically I have a script I’d like to write that would benefit from having a large number of its own hotkeys while active (a user interface isn’t practical in this case).

I know you can replace them (as described here), but that’s dangerous since if something goes wrong with the script the hotkeys will be left in a bad state. There’s also the ActionItemOverrideManager which may lead to a solution, but there’s very little documentation on it.

1 Reply

Alternatively you could make your own action table and action context and activate it on your tool start (and perhaps re-activate it using a timer while your tool is running to prevent action context change )
In theory it is doable using .net sdk, but I never tried that in practice

Another option would be to disable accelerators and use global keyboard hook to catch key combinations.