|
1 | | -ModifierKeyLauncher |
2 | | -=================== |
3 | | -This small Tool can be used to enhance the possibilities of the application keys of some keyboards. |
4 | | -It can be installed to start different applications depending on the modifier keys. |
5 | | - |
6 | | -Revision History |
7 | | ----------------- |
8 | | - |
9 | | -- 2015-06-23 V 1.0 |
10 | | - - initial Release |
11 | | - |
12 | | - |
13 | | -Explanation |
14 | | ------------ |
15 | | - |
16 | | -The application that is mapped to this application keys can be controlled via the subkeys of the following registry key: |
17 | | -`HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey` |
18 | | -and the therein lying `ShellExecute` string value. |
19 | | - |
20 | | -e.g. the calculator key is the following: |
21 | | - |
22 | | - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18 |
23 | | - |
24 | | - |
25 | | - |
26 | | -following Mappings i took from here: http://ashish.vashisht.net/2008/01/configuring-keyboard-multimedia-keys.html |
27 | | - |
28 | | - AppKey# Name Description |
29 | | - ====================================================================================================== |
30 | | - 1 APPCOMMAND_BROWSER_BACKWARD Navigate backward. |
31 | | - 2 APPCOMMAND_BROWSER_FORWARD Navigate forward. |
32 | | - 3 APPCOMMAND_BROWSER_REFRESH Refresh page. |
33 | | - 4 APPCOMMAND_BROWSER_STOP Stop download. |
34 | | - 5 APPCOMMAND_BROWSER_SEARCH Open search. |
35 | | - 6 APPCOMMAND_BROWSER_FAVORITES Open favorites. |
36 | | - 7 APPCOMMAND_BROWSER_HOME Navigate home. |
37 | | - 8 APPCOMMAND_VOLUME_MUTE Mute the volume. |
38 | | - 9 APPCOMMAND_VOLUME_DOWN Lower the volume. |
39 | | - 10 APPCOMMAND_VOLUME_UP Raise the volume. |
40 | | - 11 APPCOMMAND_MEDIA_NEXTTRACK Go to next track. |
41 | | - 12 APPCOMMAND_MEDIA_PREVIOUSTRACK Go to previous track. |
42 | | - 13 APPCOMMAND_MEDIA_STOP Stop playback. |
43 | | - 14 APPCOMMAND_MEDIA_PLAY_PAUSE Play or pause playback. |
44 | | - 15 APPCOMMAND_LAUNCH_MAIL Open mail. |
45 | | - 16 APPCOMMAND_LAUNCH_MEDIA_SELECT Go to Media Select mode. (launch media player) |
46 | | - 17 APPCOMMAND_LAUNCH_APP1 Start App1. (open Explorer at "My Computer") |
47 | | - 18 APPCOMMAND_LAUNCH_APP2 Start App2. (open calulator) |
48 | | - 19 APPCOMMAND_BASS_DOWN Decrease the bass. |
49 | | - 20 APPCOMMAND_BASS_BOOST Toggle the bass boost on and off. |
50 | | - 21 APPCOMMAND_BASS_UP Increase the bass. |
51 | | - 22 APPCOMMAND_TREBLE_DOWN Decrease the treble. |
52 | | - 23 APPCOMMAND_TREBLE_UP Increase the treble. |
53 | | - 24 APPCOMMAND_MICROPHONE_VOLUME_MUTE Mute the microphone. |
54 | | - 25 APPCOMMAND_MICROPHONE_VOLUME_DOWN Increase microphone volume. |
55 | | - 26 APPCOMMAND_MICROPHONE_VOLUME_UP Decrease microphone volume. |
56 | | - 27 APPCOMMAND_HELP Open the Help dialog. |
57 | | - 28 APPCOMMAND_FIND Open the Find dialog. |
58 | | - 29 APPCOMMAND_NEW Create a new window. |
59 | | - 30 APPCOMMAND_OPEN Open a window. |
60 | | - 31 APPCOMMAND_CLOSE Close the window (not the application). |
61 | | - 32 APPCOMMAND_SAVE Save current document. |
62 | | - 33 APPCOMMAND_PRINT Print current document. |
63 | | - 34 APPCOMMAND_UNDO Undo last action. |
64 | | - 35 APPCOMMAND_COPY Copy the selection. |
65 | | - 35 APPCOMMAND_REDO Redo last action. |
66 | | - 37 APPCOMMAND_CUT Cut the selection. |
67 | | - 38 APPCOMMAND_PASTE Paste |
68 | | - 39 APPCOMMAND_REPLY_TO_MAIL Reply to a mail message. |
69 | | - 40 APPCOMMAND_FORWARD_MAIL Forward a mail message. |
70 | | - 41 APPCOMMAND_SEND_MAIL Send a mail message. |
71 | | - 42 APPCOMMAND_SPELL_CHECK Initiate a spell check. |
72 | | - 43 APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE Toggles between two modes of speech input: dictation and command/control (giving commands to an application or accessing menus). |
73 | | - 44 APPCOMMAND_MIC_ON_OFF_TOGGLE Toggle the microphone. |
74 | | - 45 APPCOMMAND_CORRECTION_LIST Brings up the correction list when a word is incorrectly identified during speech input. |
75 | | - |
76 | | - |
77 | | -The `ShellExecute` string value specifies the application that will be called when this key is pressed. |
78 | | - |
79 | | -This is the step there this little program kicks in. |
80 | | -It is a small dispatcher that decides which program to call depending of the state of the modifier keys on the keyboard. |
81 | | - |
82 | | -command line syntax is the following: |
83 | | - |
84 | | - PathToTool\ModifierKeyLauncher.exe "normal\Program\path" "shift\Program\path" "cntrl\Program\path" "alt\Program\path" |
85 | | - |
86 | | -The program reads the key states and starts the program (or opens the document/file) |
87 | | - |
88 | | - |
89 | | -### Example: |
90 | | -choose between different calculators: |
91 | | - |
92 | | -- open regedit |
93 | | -- create (if not exist) a key |
94 | | - `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18` |
95 | | -- create a string value `ShellExecut` |
96 | | -- set the value to: |
97 | | - `c:\PathToTool\ModifierKeyLauncher.exe "C:\somePath\Microsoft Calculator Plus\CalcPlus.exe" "calc.exe" "C:\somePath\SpeedCrunch.exe" ` |
98 | | - |
99 | | - |
| 1 | +ModifierKeyLauncher |
| 2 | +=================== |
| 3 | +This small Tool can be used to enhance the possibilities of the application keys of some keyboards. |
| 4 | +It can be installed to start different applications depending on the modifier keys. |
| 5 | + |
| 6 | +Revision History |
| 7 | +---------------- |
| 8 | + |
| 9 | +- 2019-05-04 V 1.1 |
| 10 | + - release on github |
| 11 | +- 2015-06-23 V 1.0 |
| 12 | + - initial Release |
| 13 | + |
| 14 | + |
| 15 | +Explanation |
| 16 | +----------- |
| 17 | + |
| 18 | +The application that is mapped to this application keys can be controlled via the subkeys of the following registry key: |
| 19 | +`HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey` |
| 20 | +and the therein lying `ShellExecute` string value. |
| 21 | + |
| 22 | +e.g. the calculator key is the following: |
| 23 | + |
| 24 | + HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18 |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +following Mappings i took from here: http://ashish.vashisht.net/2008/01/configuring-keyboard-multimedia-keys.html |
| 29 | + |
| 30 | + AppKey# Name Description |
| 31 | + ====================================================================================================== |
| 32 | + 1 APPCOMMAND_BROWSER_BACKWARD Navigate backward. |
| 33 | + 2 APPCOMMAND_BROWSER_FORWARD Navigate forward. |
| 34 | + 3 APPCOMMAND_BROWSER_REFRESH Refresh page. |
| 35 | + 4 APPCOMMAND_BROWSER_STOP Stop download. |
| 36 | + 5 APPCOMMAND_BROWSER_SEARCH Open search. |
| 37 | + 6 APPCOMMAND_BROWSER_FAVORITES Open favorites. |
| 38 | + 7 APPCOMMAND_BROWSER_HOME Navigate home. |
| 39 | + 8 APPCOMMAND_VOLUME_MUTE Mute the volume. |
| 40 | + 9 APPCOMMAND_VOLUME_DOWN Lower the volume. |
| 41 | + 10 APPCOMMAND_VOLUME_UP Raise the volume. |
| 42 | + 11 APPCOMMAND_MEDIA_NEXTTRACK Go to next track. |
| 43 | + 12 APPCOMMAND_MEDIA_PREVIOUSTRACK Go to previous track. |
| 44 | + 13 APPCOMMAND_MEDIA_STOP Stop playback. |
| 45 | + 14 APPCOMMAND_MEDIA_PLAY_PAUSE Play or pause playback. |
| 46 | + 15 APPCOMMAND_LAUNCH_MAIL Open mail. |
| 47 | + 16 APPCOMMAND_LAUNCH_MEDIA_SELECT Go to Media Select mode. (launch media player) |
| 48 | + 17 APPCOMMAND_LAUNCH_APP1 Start App1. (open Explorer at "My Computer") |
| 49 | + 18 APPCOMMAND_LAUNCH_APP2 Start App2. (open calulator) |
| 50 | + 19 APPCOMMAND_BASS_DOWN Decrease the bass. |
| 51 | + 20 APPCOMMAND_BASS_BOOST Toggle the bass boost on and off. |
| 52 | + 21 APPCOMMAND_BASS_UP Increase the bass. |
| 53 | + 22 APPCOMMAND_TREBLE_DOWN Decrease the treble. |
| 54 | + 23 APPCOMMAND_TREBLE_UP Increase the treble. |
| 55 | + 24 APPCOMMAND_MICROPHONE_VOLUME_MUTE Mute the microphone. |
| 56 | + 25 APPCOMMAND_MICROPHONE_VOLUME_DOWN Increase microphone volume. |
| 57 | + 26 APPCOMMAND_MICROPHONE_VOLUME_UP Decrease microphone volume. |
| 58 | + 27 APPCOMMAND_HELP Open the Help dialog. |
| 59 | + 28 APPCOMMAND_FIND Open the Find dialog. |
| 60 | + 29 APPCOMMAND_NEW Create a new window. |
| 61 | + 30 APPCOMMAND_OPEN Open a window. |
| 62 | + 31 APPCOMMAND_CLOSE Close the window (not the application). |
| 63 | + 32 APPCOMMAND_SAVE Save current document. |
| 64 | + 33 APPCOMMAND_PRINT Print current document. |
| 65 | + 34 APPCOMMAND_UNDO Undo last action. |
| 66 | + 35 APPCOMMAND_COPY Copy the selection. |
| 67 | + 35 APPCOMMAND_REDO Redo last action. |
| 68 | + 37 APPCOMMAND_CUT Cut the selection. |
| 69 | + 38 APPCOMMAND_PASTE Paste |
| 70 | + 39 APPCOMMAND_REPLY_TO_MAIL Reply to a mail message. |
| 71 | + 40 APPCOMMAND_FORWARD_MAIL Forward a mail message. |
| 72 | + 41 APPCOMMAND_SEND_MAIL Send a mail message. |
| 73 | + 42 APPCOMMAND_SPELL_CHECK Initiate a spell check. |
| 74 | + 43 APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE Toggles between two modes of speech input: dictation and command/control (giving commands to an application or accessing menus). |
| 75 | + 44 APPCOMMAND_MIC_ON_OFF_TOGGLE Toggle the microphone. |
| 76 | + 45 APPCOMMAND_CORRECTION_LIST Brings up the correction list when a word is incorrectly identified during speech input. |
| 77 | + |
| 78 | + |
| 79 | +The `ShellExecute` string value specifies the application that will be called when this key is pressed. |
| 80 | + |
| 81 | +This is the step there this little program kicks in. |
| 82 | +It is a small dispatcher that decides which program to call depending of the state of the modifier keys on the keyboard. |
| 83 | + |
| 84 | +command line syntax is the following: |
| 85 | + |
| 86 | + PathToTool\ModifierKeyLauncher.exe "normal\Program\path" "shift\Program\path" "cntrl\Program\path" "alt\Program\path" |
| 87 | + |
| 88 | +The program reads the key states and starts the program (or opens the document/file) |
| 89 | + |
| 90 | + |
| 91 | +### Example: |
| 92 | +choose between different calculators: |
| 93 | + |
| 94 | +- open regedit |
| 95 | +- create (if not exist) a key |
| 96 | + `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18` |
| 97 | +- create a string value `ShellExecut` |
| 98 | +- set the value to: |
| 99 | + `c:\PathToTool\ModifierKeyLauncher.exe "C:\somePath\Microsoft Calculator Plus\CalcPlus.exe" "calc.exe" "C:\somePath\SpeedCrunch.exe" ` |
| 100 | + |
| 101 | + |
0 commit comments