识别Fn键并将其重新映射到Win键

时间:2018-02-26 10:32:25

标签: keyboard key keyboard-shortcuts autohotkey remap

键盘MSI游戏键盘DS4100

这个键替换了左边的alt和ctrl之间的左赢键,我需要重新映射它,如果点击它切换正确的赢键,但我不能用ahk和其他程序如SharpKeys识别这个键,没有一个单击此Fn键时,ahk会在按下时不记录任何日志。

尝试了此Identify Special key keycode,但它没有将其记录在日志中。

#SingleInstance Force
#InstallKeybdHook
#InstallMouseHook
NP:="Untitled - Notepad"

IfWinExist, % NP
WinActivate
else
IfWinNotExist, % NP
Run, Notepad.exe,, UseErrorLevel, nPID
nPID=%nPID%
if (ErrorLevel){
    MsgBox, there is a problem
}else{
    ToolTip, Notepad running as PID: %nPID%
    Sleep, 1000
    ToolTip
}
WinActivate, % NP
WinWaitActive, % NP
Send, {Raw}Hello %A_UserName%,`n`nRight click on the H icon on your traybar`ngoto -> "Open" ->          "View" - > "Key History and Script Info"`n`nThis area shows you your past keypresses. =]`n`n-islanq
return

还尝试过SharpKeys,自动检测没有检测到,尝试手动设置我发现一个键说Wake(或Fn),但没有效果。

与KeyTweak相同。

enter image description here (放大)

1 个答案:

答案 0 :(得分:0)

您是否尝试通过查看关键历史记录来查找其虚拟密钥并扫描代码(vkXXscYYY)?

This post可能会帮助您,具体取决于Fn键的实现方式。

相关问题