Is it possible to change function for certain function keys with either PowerShell or VB.NET? I got a tiny keyboard, with media-buttons, and tired of deactivating these in BIOS from time to time.

Not really sure where to start here. Any help would be greatly appreciated.

For PowerShell is Set-PSReadLineKeyHandler an option?


Get-key f1
Set-value fn+f1

1 Answers

HAL9256 On

PowerShell isn't really the best keyboard remapping tool. It can be done, but I would look at other tools like AutoHotKey that are designed to use keyboard hooks to intercept keystrokes and can remap them see: Remapping Keys

An example remapping file is:



Save it, run the AutoHotKey compiler to make an .exe, then set up a Scheduled Task to run on login.