オンザフライでホットキーを定義するHotkey
を使用して別の溶液、及びparse
:Hotkeyコマンドを使用して、ちょうど61文字でZにY -
JFF、ここでを割り当てるいユーザーは直接キーのリストを指定することができます:
; Thanks engunneer: autohotkey.com/board/topic/45636-script-to-prevent-double-typing/?p=284048
; Thanks throwaway_ye: https://www.reddit.com/r/AutoHotkey/comments/54g40q/how_can_i_bind_several_keys_to_the_same_command/d81j0we
; The following part must be located in the auto-execute section,
; i.e. the top part of the AHK script.
keylist = 1234567890qwertzuiopasdfghjklyxcvbnm
Loop, parse, keylist
{
Hotkey, $%A_LoopField%, SendGivenKey
}
Return
; This can be located anywhere in the AHK file
SendGivenKey:
StringReplace, key, A_ThisHotkey, $, , All
send %key%
Return
この解決策は私の心の中でより良いです。 – sixtytrees