私は最近キーボードを壊してしまい、オートホットキーでその場しのぎの非効率なプログラムを書いて修正しました。
これが私の現在のラップトップ キーボードの出力です: y = ry h = fh n = {enter}+n 6 = 46
現在、壊れたキーごとに 4 つの autohotkey ファイルを実行しています。以下はhのファイルです
たしかに
#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}
}
4 つの .ahk ファイルを 1 つに結合するにはどうすればよいですか? そして、これを行うためのより良い方法はありますか?
** 編集 1 つのファイルでそれを行う方法を見つけましたが、n/enter キーが機能しません。
これがコードです...
stackadjust.ahk
:?*:fh::h
:?*:hf::h
:?*:ry::y
:?*:yr::y
:?*:46::6
:?*:64::6
:?*:n{Enter}::n
:?*:{Enter}n::n