我的 AHK 腳本一直顯示無效熱鍵

我的 AHK 腳本一直顯示無效熱鍵

我正在嘗試設定功能鍵來調節音量(就像在我的筆記型電腦上所做的那樣),但我似乎無法讓它工作。 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 說明主題。

相關內容