向 IE 中的工具栏按钮添加键盘快捷键

发布于 2024-10-03 03:48:48 字数 85 浏览 0 评论 0原文

Hii..我在 IE 中制作了一个自定义工具栏。我想要相同按钮的键盘快捷键。是否可以。具体来说,我希望通过 Ctrl+alt+A 等组合键来访问工具栏选项。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

固执像三岁 2024-10-10 03:48:48

您需要实现正确的接口。我不能立即百分百确定那是什么。它可能是 IInputObject。它可能是疯狂的 OLE 接口。您可以在 QueryInterface() 实现上设置一个断点,看看它要求什么。

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.

等待我真够勒 2024-10-10 03:48:48

我终于找到了使用全局键盘挂钩的解决方案,即
m_hhook = ::SetWindowsHookEx(WH_KEYBOARD, KeyboardProc, NULL, GetCurrentThreadId());

欲了解更多详情,请访问链接
http://www.ookii.org/post/ie_addon_development_globally_capturing_keyboard_input.aspx

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文