The library allows to set hotkeys by using the low-level keyboard hook. Below are the main differences between HotKey UDF from the native HotKeySet() function.
- To assign a hotkeys are used integer values instead of strings as in the HotKeySet() function. This is useful, for example, to save the hotkey's values in the registry.
- Ability to set any hotkeys including CTRL+ALT+DEL, F12, WIN+*, etc. The only exceptions are special keys such as "Fn" which do not have their own scan code.
- Ability to utilize or pass on the specified hotkeys for other applications.
- Ability to set hotkeys that already used by other applications.
- Ability to set hotkeys only for the specified window(s).
- Ability to prevent re-activation of the hotkeys when it is held down.
- Ability to disable previously installed hotkeys without removing the hook from the hook chain, ie without losing priority.
- Ability to block call user-defined function associated with the hotkey if the previous call has not been completed.
Here is what you can not do by using this library.
- Set hotkey only for the CTRL, ALT, SHIFT, WIN, and any combination of this keys. Any hotkey should always include one function key. For example, ALT+A, CTRL+SHIFT+F10, etc.
- Set hotkey for a mouse buttons.
- Prevent using the hotkey like CTRL+ALT+DEL, CTRL+SHIFT+ESC (Windows Vista+), and similar.
- Use more than one function key in the hotkey. For example, ALT+A+B, F1+F2, etc.
- Use "Fn" key or any other keys that do not have their own scan code.
HotKey UDF Library v1.7
(Previous downloads: 2618)
HotKey.au3 24.32KB 2210 downloads
HotKey UDF Library v2.0b (Read here for more information)
(Previous downloads: 289)
HotKey_20b.au3 25.29KB 1349 downloads
Virtual-Key (VK) Code Constants (Optional)
(Previous downloads: 1576)
vkConstants.au3 5.62KB 1408 downloads
Edited by Yashied, 17 October 2011 - 11:51 PM.