I want to use Fn+S to emulate Ctrl+S, and so far this is my code:
#InstallKeybdHook
#Persistent
SC126 & s::
Send ^{s}
return
My problem is that I don't know the Fn key's scan code.
How can I find it?
I want to use Fn+S to emulate Ctrl+S, and so far this is my code:
#InstallKeybdHook
#Persistent
SC126 & s::
Send ^{s}
return
My problem is that I don't know the Fn key's scan code.
How can I find it?
The Fn
key does not have a scan code.
The keyboard driver does not expose the Fn
key to the operating system, so basically your operating system (and therefore AutoHotkey) does not know that it exists.
When you press the Fn
key in combination with a supported key, the keyboard driver reports a single key press to the operating system with a different scan code. Basically, it tells the operating system that a different key was pressed.
When you press the Fn key in combination with a supported key, the keyboard driver reports the presses to the operating system (Windows in this case).
You can find the Fn key scan code by:
If you're trying to use a Mac keyboard and would like to map the Fn key to Insert (and also get other standard Windows keys, like PrintScreen), then you might want to try the 'hidfalum' driver. It's available here: http://www.bimoid.com/download/utils/hidfalum.zip