开发者

Adding keyboard short-cuts to toolbar buttons in IE

开发者 https://www.devze.com 2023-01-26 02:10 出处:网络
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 开发者_C百科would like the toolbar options to be accessed

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 开发者_C百科would like the toolbar options to be accessed by combination of keys like Ctrl+alt+A etc.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号