Re: hotkeys in IE add-on
<akivap@gmail.com> wrote in message
news:1172669784.609775.35890@m58g2000cwm.googlegroups.com
On Feb 28, 3:06 pm, "Igor Tandetnik" <itandet...@mvps.org> wrote:
"kombat" <oha...@gmail.com> wrote in message
news:1172665060.379371.128220@8g2000cwh.googlegroups.com
i want to support shortcut-keys, is this possible, if so how ? and
can they be active even when the sidebar/toolbar are hidden ?
You can install a keyboard hook - see SetWindowsHookEx. You would
probably need a BHO, to make sure your code is loaded and running
even when all UI is hidden.
wouldn't this be a global hook ?
SetWindowsHookEx gives you an option of installing a global hook, a
process-wide hook, or a hook for a specific thread. I don't see why you
would want the first option.
what about WM_SETHOTKEY ?
What about it?
You might be thinking about RegisterHotKey. Note that such a hot key is
system-wide. If, say, you have two browser instances, only one of them
can successfully register a hotkey. Besides, the hotkey would go to you
even when some other application, not the browser, is active. Is this
what you want?
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925