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?
Goal:
Get-key f1
Set-value fn+f1
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:
ex.ahk
Save it, run the AutoHotKey compiler to make an .
exe
, then set up a Scheduled Task to run on login.