I use the 20 extended keys for different tasks. It will help me to make my work more efficiently. For instance the new created "scan key" (was "Next" Key) starts the scanner and converts paper to different file types depending on how often I've pressed it.
If I press an extended key quickly five times the AHK-editor opens and brings me directly to the key label in order to edit the key script. So I can efficiently make new uses of those keys.
To assign AHK-commands to the extended keys like "Favorites", "My Pictures", "Messenger" you can do the following:
1. Assign simple standard program commands like "copy", "close" etc. to the extended keys (using the Intellitype Software or the registry). For instance you can assign the "File Close" command to the "My Pictures" key.
(Intellitype Key code of the "My pictures" key: 65
Intellitype command code for the "File close" command: 309)
2. Find the commands.xml file in the Intellitype directory, save a copy and change the command.xml like this
<?xml version="1.0" encoding="Windows-1252" standalone="yes" ?> <DPGCmd> <Version>5.20.414.0</Version> <DEU> </DEU> <ALL> <Application UniqueName="StandardSupport"> <C309 Type="5" KeySeq="shift alt subtract" /> <C201 Type="5" KeySeq="ctrl alt F12" /> <C200 Type="5" KeySeq="ctrl alt F11" /> <C301 Type="5" KeySeq="ctrl alt F3" /> <C302 Type="5" KeySeq="F1" /> <C202 Type="5" KeySeq="shift alt add" /> <C203 Type="5" KeySeq="ctrl alt F5" /> <C307 Type="5" KeySeq="ctrl alt F6" /> <C308 Type="5" KeySeq="ctrl alt F7" /> <C205 Type="5" KeySeq="delete" /> <C100 Type="5" KeySeq="alt leftarrow" /> <C101 Type="5" KeySeq="alt rightarrow" /> <C103 Type="5" KeySeq="escape" /> <C300 Type="5" KeySeq="enter" /> <C319 Type="6" Activator="ZoomIn" /> <C320 Type="6" Activator="ZoomOut" /> <C1101 Type="6" Activator="HorizontalScroll" /> <C1003 Type="7" Subtype="0" /> </Application> </ALL> </DPGCmd>
In this example the command code 309 ("Close file") is assigned to the keystrokes "shift alt subtract". You can use different key combinations but consider intellitype dosn't like every combination.
3. Restart the process type32.exe or your computer.
4. Write a script like this:
+!NUMPADSUB:: MSGBOX, You pressed the "My Pictures" key!That’s all. This way you can reassign all keys that are not accessible by AHK directly. Keys like "Browser home" don't need Intellitype; they can be deactivated in Intellitype and assigned by the appropriate key code in AHK directly (browser_home:: ).
If you like double or triple key presses use cases (like I do), consider this:
~+!NUMPADSUB:: LOOP { INPUT, key_pressed, T1 L1,{NUMPADSUB} IF errorlevel = Timeout { MSGBOX, The "My Pictures" key was pressed %A_INDEX% times BREAK } } RETURN
Here https://ahknet.autoh...ite Desktop.pdf you find the needed key codes and an example how assign keystrokes to the extended keys. Consider its a german keyboard layout.