Finding the scan code of FN Key

后端 未结 3 809
死守一世寂寞
死守一世寂寞 2021-02-12 22:05

I want to use Fn+S to emulate Ctrl+S, so far this is my code:

 #InstallKeybdHook
 #Persistent

  SC126 & s::
             


        
3条回答
  •  北海茫月
    2021-02-12 22:58

    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.

提交回复
热议问题