4
votes

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.

What is the Function key called in AutoHotkey?

1
Try to find out the scan code of this key (if it has any) via key history.user3419297
@user3419297 I pressed the key, then F5 (refresh)- it turns up with nothing as if I didn't press the key.Antp
Read in the manual: ahkscript.org/docs/KeyList.htm#SpecialKeys (Alternate solutions)user3419297
ive red it, pretty sure its a software that has higher authorities that AKH, but im stuck here.Antp

1 Answers

3
votes

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