问题描述
我想使用 + 模拟 + ,到目前为止,这是我的代码:
I want to use + to emulate +, so far this is my code:
#InstallKeybdHook
#Persistent
SC126 & s::
Send ^{s}
return
我的问题是我不知道Fn
键的扫描代码.
我怎么找到它?
My problem is that I don't know the Fn
key's scan code.
How can I find it?
推荐答案
Fn
键没有扫描代码.
键盘驱动程序不会将Fn
键公开给操作系统,因此基本上您的操作系统(以及AutoHotkey)都不知道它存在.
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.
当您同时按下Fn
键和受支持的键时,键盘驱动程序会使用不同的扫描代码向操作系统报告单次按下的键.基本上,它告诉操作系统按下了另一个键.
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.
这篇关于查找FN键的扫描码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!