昨天说到的AutoHotkey的多媒体热键
http://blog.zol.com.cn/1450/article_1449061.html果然是支持的呢
The following exist only on Multimedia or Internet keyboards that have extra buttons or keys:
Browser_Back
Browser_Forward
Browser_Refresh
Browser_Stop
Browser_Search
Browser_Favorites
Browser_Home
Volume_Mute
Volume_Down
Volume_Up
Media_Next
Media_Prev
Media_Stop
Media_Play_Pause
Launch_Mail
Launch_Media
Launch_App1
Launch_App2
甚至别的按键也可以用ScanCode认到,也就是说只要你会用这个东西,就基本不用安装SetPoint之类的键盘软件了
Special Keys
If your keyboard or mouse has a key not listed above, you might still be able to make it a hotkey by using the following steps (requires Windows XP/2000/NT or later):
- Ensure that at least one script is running that is using the keyboard hook. You can tell if a script has the keyboard hook by opening its main window and selecting "View->Key history" from the menu bar.
- Double-click that script's tray icon to open its main window.
- Press one of the "mystery keys" on your keyboard.
- Select the menu item "View->Key history"
- Scroll down to the bottom of the page. Somewhere near the bottom are the key-down and key-up events for your key. NOTE: Some keys do not generate events and thus will not be visible here. If this is the case, you cannot directly make that particular key a hotkey because your keyboard driver or hardware handles it at a level too low for AutoHotkey to access. For possible solutions, see further below.
- If your key is detectible, make a note of the 3-digit hexadecimal value in the second column of the list (e.g.159).
- To define this key as a hotkey, follow this example:
SC159:: ; Replace 159 with your key's value. MsgBox, %A_ThisHotKey% was pressed. return