我最近弄坏了我的键盘,并在 autohotkey 中编写了一些非常临时的、低效的程序来修复它们
这是我当前笔记本电脑键盘的输出: y = ry h = fh n = {enter}+n 6 = 46
我目前为每个损坏的键运行 4 个自动热键文件。以下是 h 的文件
hadjust.ahk
#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.
while true {
KeyWait, h,D
Sleep 20
Send {BS}
Send {BS}
Send {h}
}
如何将四个 .ahk 文件合并为 1 个?有没有更好的方法来做到这一点?
** 编辑我找到了一种在一个文件中执行此操作的方法,但我无法使用 n/enter 键。
这是代码...
堆栈调整.ahk
:?*:fh::h
:?*:hf::h
:?*:ry::y
:?*:yr::y
:?*:46::6
:?*:64::6
:?*:n{Enter}::n
:?*:{Enter}n::n