Autohotkey 如何在自动热键中设置箭头热键?

Autohotkey 如何在自动热键中设置箭头热键?,autohotkey,Autohotkey,我正在使用AutoHotkey中的脚本,以允许我使用Dell AT101W键盘控制计算机的音量(因为Windows中没有设置用于控制这些内容的键,并且此键盘中没有编程的控件) 到目前为止,我所拥有的: ^!(whatever the up arrow is) ; What is up? SoundSet +2 ^!(whatever the down arrow is) ; What is down? SoundSet -2 我不完全确定音量命令是否正确,但我完全不知道如何

我正在使用AutoHotkey中的脚本,以允许我使用Dell AT101W键盘控制计算机的音量(因为Windows中没有设置用于控制这些内容的键,并且此键盘中没有编程的控件)

到目前为止,我所拥有的:

^!(whatever the up arrow is) ; What is up?
     SoundSet +2
^!(whatever the down arrow is) ; What is down?
     SoundSet -2

我不完全确定音量命令是否正确,但我完全不知道如何让它识别上下箭头键(我不知道它们是什么)。示例脚本很受欢迎,但不是必需的。

实际上非常简单,只需向上
和向下
即可

下面是一个工作脚本,用于设置托盘消息气球,在更改新卷后通知您新卷:

^!Up::
     SoundSet +2
     GoSub DisplayCurrentVolume
     Return
^!Down:: 
     SoundSet -2
     GoSub DisplayCurrentVolume
     Return

DisplayCurrentVolume:
     SoundGet, volume
     volume := Ceil(volume) ; Round up
     TrayTip, Volume Adjusted, Volume changed to %volume%`%, 5, 1
     Return

嗯,它确实做了一些事情,但我认为我使用“SoundSet”时没有把握,因为它似乎对我的实际系统音量没有任何作用。不过,这确实回答了我关于使用按键的问题,因此我感谢你。请尝试最新版本的autohotkey,因为不久前已经对一些声音功能进行了修复。