I'm trying to use AutoHotkey on Windows 7 Professional to remap some of the special keys on a Lenovo W540 laptop. Above the number pad, there are 4 keys: Calculator, Lock Computer, Web Browser, and Windows Explorer. I want to remap 3 of them to Volume Mute, Volume Up, and Volume Down. I was able to successfully remap the Calculator and Web Browser keys with the below script, however the Windows Explorer Key will not map despite me using Launch_App1 (it still launches Explorer/Computer) and I'm not sure if it's possible to remap the Lock Computer key at all.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Launch_App2::Volume_Mute
Browser_Home::Volume_Down
Launch_App1::Volume_Up
EDIT:
Upon further study and use of "#InstallKeybdHook", it seems that those buttons actually correspond to LWin+e and LWin+l. I see that remapping the Lock Computer key can be difficult so I'm OK with remapping just the Explorer key and did so via this line:
Code: Select all
#e::Volume_Up