Is it possible to reassign the hotkeys? For example, can I change Shift/F9 to some other unused combination?
Printable View
Is it possible to reassign the hotkeys? For example, can I change Shift/F9 to some other unused combination?
What scope? Just your application? If so, where is Shift+F9 being set in the first place? A menu perhaps?
What do you want Shift+ F9 to do? Open Search in the IDE, or something else?
Gotcha, you want to change the menu item in the IDE for 'quick watch'
Might be a good reason to create an custom add-in? This way every instance of IDE is updated & can be removed if no longer needed. The actual code needed, regardless, I believe will use these APIs. I may be able to play later :)
To my surprise and embarrassment I must confess I actually meant Ctrl/F9 -rather than Shift/F9- which sets the execution point at a specific line... :o
Sometimes I don't remember the exact sequence -whether it's shift or ctrl as in this case- so I simply find out by trial and error. Because the screen saver popped up I just didn't realize it was the wrong combination.
Still I'd like to know if it's possible to make this type of changes.
Haven't seen a way to get the existing accelerator table of a thread. So, the easy method may be a no-go. Here are a couple of other options & then the question begs to be asked: is it really worth it.
1. The IDE will be subclassed, likely in an add-on. RegisterHotKey could be used to override the system hotkey, but you'll need to trap the WM_HOTKEY message and either forward the desired keystroke to the IDE or call the menu item directly via WM_Command.
2. Hack vb6 & change the accelerator table entry directly