查找FN键的扫描码 [英] Finding the scan code of FN Key

查看:331
本文介绍了查找FN键的扫描码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Fn + S 模拟 Ctrl + S ,到目前为止,这是我的代码:

I want to use Fn+S to emulate Ctrl+S, 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键的扫描码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆