
ファンクション キーを音量調整用に設定しようとしていますが (ラップトップで行ったように)、うまく動作しないようです。F5 行目のホットキーが無効ですと表示されます。これが私のコードです:
#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.
BackspaceF9::
Volume_Down
BackspaceF10::
Volume_Up
BackspaceF11::
Volume_Mute
何が間違っているのでしょうか?
答え1
バックスペース キーとファンクション キーを組み合わせる場合は、アンパサンドを使用します。ホットキーについては、AutoHotkey ヘルプ トピックを参照してください。