gpt4 book ai didi

windows - Autohotkey:如何清除 Windows 分配的大多数 Fn 热键?

转载 作者:可可西里 更新时间:2023-11-01 11:55:43 25 4
gpt4 key购买 nike

我想对一些 Fnn 和 shift-Fnn 键进行编程,并从窗口分配给它们的内容中清除其余的键。只要足够长的时间来运行 telnet 或 putty session ,然后我想让它们恢复到 win std。我在 AutoHotkey 中使用了一个脚本,它大部分都有效,但我将许多未使用的键分配为 SHIFT 键,现在 shift-F4 经常打出未转换的 F4 字符串 {超过一半的时间我点击它。}有一些比仅仅在所有这些键上敲击 SHIFT 更好的方法来核对 Windows 预设,或者我可以对脚本进行一些模糊的调整以减轻 SHIFT kbd Hook 上的负载?脚本如下;请注意,如果重要的话,大多数行都有很多尾随空格......在 win8 笔记本电脑和 XP 台式机上测试,结果相同。

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
;SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetWorkingDir C:\bin ; Ensures a consistent starting directory.
F1::send, EX`r
F2::Shift
F3::Shift
F4::send, FI`r
F5::Shift
F6::Shift
F7::Shift
F8::Shift
F9::send, OFF`r
F10::send, PROD
F11::send, `r
F12::send, END`r
+F1::send, FD
+F2::Shift
+F3::Shift
+F4::send, EM5
+F5::Shift
+F6::Shift
+F7::Shift
+F8::Shift
+F9::send, `r
+F10::send, PYR`r
+F11::send, SYSP
+F12::Shift
^F12::ExitApp ; control-F12 will remove all these
$~CapsLock Up::SetCapsLockState Off ; regress capslock to a SHIFT

最佳答案

尝试了类似的方法来“禁用”Windows 对 WIN 键的保持,我发现没有办法禁用所有这些 - 只有几个。

但是,如您所见,Autohotkey 可以覆盖 Windows 热键。

如果您只是想禁用 Windows 对这些键的使用(如果我理解正确的话),您可以尝试这样的操作:

F11::
F12::
return

只要脚本正在运行,这将有效地禁止在任何地方使用 F11 和 F12。

(不,尾随空格没有任何区别)

关于windows - Autohotkey:如何清除 Windows 分配的大多数 Fn 热键?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17498331/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com