Hi LD50,
I see that this is your first post here, so let me start with...Welcome Aboard!
LD50 wrote:but it seemed better than starting a new thread on the same subject
I don't think so. Although the Subject is the same (Volume Control on PC Windows 10), you're asking a question about a different, specific script that you wrote, so a new question would have been preferable, imo.
LD50 wrote:shortcut to add to my startup folder
There are two startup folders...one for the logged-in user and one for all users. The startup folder you chose is the all-users (aka Public) one, which, btw, is in the AHK built-in variable
A_StartupCommon. The user one is in the AHK built-in variable
A_Startup (such as, C:\Users\<UserName>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup). Yes, placing the shortcut in either one will work to run the script when Windows starts.
Regarding your script, you used
single-line hotkeys, i.e., the hotkey code is on the same line, immediately to the right of the double-colon. In that case, the
Return is implicit, so you don't need the explicit
Return command. I nearly always use the multi-line method to avoid future bugs when I add some code and forget the
Return.
In other words, this is preferable, imo:
Code: Select all
+Up::
SoundSet,+10
Return
+Down::
SoundSet,-10
Return
Regards, Joe