Question

Hii.. I have made a custom toolbar in IE. I would like to have keyboard shortcuts for the buttons of the same. Is it possible. Specifically I would like the toolbar options to be accessed by combination of keys like Ctrl+alt+A etc.

Was it helpful?

Solution 2

I finally found a solution using global keyboard hooks viz m_hhook = ::SetWindowsHookEx(WH_KEYBOARD, KeyboardProc, NULL, GetCurrentThreadId());

For more details visit the link http://www.ookii.org/post/ie_addon_development_globally_capturing_keyboard_input.aspx

OTHER TIPS

You need to implement the right interface. I'm not 100% sure off-hand what that is. It could be IInputObject. It could be one of the crazy OLE interfaces. You could set a breakpoint on your QueryInterface() implementation and see what it asks for.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top