#define MAX_HOTKEYS 1000

Propose new features and changes
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

#define MAX_HOTKEYS 1000

08 Jul 2018, 15:39

// Due to control/alt/shift modifiers, quite a lot of hotkey combinations are possible, so support any
// conceivable use. Note: Increasing this value will increase the memory required (i.e. any arrays
// that use this value):
#define MAX_HOTKEYS 1000 // Raised from 700 to 1000 in v1.0.48 because at least one person needed more.
i wanted to make a script registering hotkeys by their VK code(so as to make it keyboard type independent) and all of their possible modifier combinations. For Ctrl, Shift, Alt, Win that would be (2^4 - 1) * 254 ~= 3800 possible hotkey combinations. basically, go through this list here: https://docs.microsoft.com/en-us/window ... -key-codes
what are the consequences of raising the limit or would it be possible to make this configurable via a directive?
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: #define MAX_HOTKEYS 1000

11 Jul 2018, 00:13

Increased memory usage.

Allowing the limit to be set or changed while the program is running would increase code size and complexity. If it is done at all, I would choose to adjust the limit automatically (or in other words, let it be "current capacity", not a limit). I do not want to add a directive.
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: #define MAX_HOTKEYS 1000

14 Jul 2018, 22:36

See test build. It seems I exaggerated the cost.

Return to “Wish List”

Who is online

Users browsing this forum: pedro45_vs and 61 guests