How to map custom Logitech keyboard keys on Windows?

Solution 1:

Setpoint is very bad on custom keys, and in addition it has the bad habit of swallowing up some of these keys, such as the multimedia keys, so they are unavailable to other programs.

I suggest to avoid Setpoint and to use instead AutoHotkey.

Your first step is to find out the scan-codes of the special keys. Since we are using AutoHotkey, create a .ahk file, and enter and run the following scriptlet (source):

SetFormat, Integer, Hex
Gui +ToolWindow -SysMenu +AlwaysOnTop
Gui, Font, s14 Bold, Arial
Gui, Add, Text, w100 h33 vSC 0x201 +Border, {SC000}
Gui, Show,, % "// ScanCode //////////"
Loop 9
  OnMessage( 255+A_Index, "ScanCode" ) ; 0x100 to 0x108
Return

ScanCode( wParam, lParam ) {
 Clipboard := "SC" SubStr((((lParam>>16) & 0xFF)+0xF000),-2) 
 GuiControl,, SC, %Clipboard%
}

Run it and when the GUI is in focus press a key and the scancode will be displayed and copied to the clipboard in the format for using as hotkey or with Send commands.

The scancodes can be used in a scriptlet. For example, use the Browser multimedia key to run Firefox:

SC032::Run "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"

Once the scriptlet is complete, you may store it in the Startup folder so it will run automatically with Windows.

You may need to search for command-line programs that can do the operations you need. For example, sound can be controlled by the free NirCmd.