What is the Function key called in AutoHotkey?

前端 未结 1 1550
遥遥无期
遥遥无期 2021-01-20 14:40

I have a key labelled Fn in blue letters at the bottom of my Windows 7 keyboard. I want to trigger my AutoHotkey script whenever someone presses that key.

1条回答
  •  一生所求
    2021-01-20 14:57

    The problem with the Fn key is, that a lot of keyboards don't implement it as normal key, but as a modifier that changes the key messages of other keys pressed at the same time.

    So here is an example scenario of how Windows could see your input:

    Press F1 down - Windows receives the F1 down code
    Press F1 up - Windows receives the F1 up code
    Press Fn down - Windows doesn't get anything
    Press F1 down - Windows receives the media ▶ down code
    Press F1 up - Windows receives the media ▶ up code
    Press Fn up - Windows doesn't get anything

    0 讨论(0)
提交回复
热议问题