
#AUTOHOTKEY AUDIO BAR WINDOWS#
Kidding aside, Windows audio isn't necessarily uniform regarding implementation. Trying to control the audio of individual programs in Windows can be a headache and you should give up now. Let me know if this is to your satisfaction.Yes. Hovering on the icon gives a tool tip showing what hotkeys to use and the current volume level. I used headphones as the icon for this script in the system tray, but that can easily be changed to a speaker or a music note or whatever you prefer. If you don't press either hotkey in 3 seconds, the horizontal green bar will automatically go away. If you press the volume-up or volume-down hotkey in rapid succession (or keep it pressed), the horizontal green bar with the volume number (0-100) will stay on the screen. With this new script, you'll see a horizontal green bar with the volume number (from 0 to 100, in increments of 1), similar to the W10 horizontal volume slider. If you change the hotkeys, then change the ToolTip statements. You may use more than one modifier key if you want, such as !^Left:: or ^+Left. However, change it to whatever you want, as I mentioned in a previous post:

In this script, I changed the volume-up and volume-down hotkeys to use Alt instead of Shift, because Shift+LeftArrow and Shift+RightArrow highlight/select text in many programs and I don't think it is a good idea to lose that functionality. Progress,%Volume%,%Volume%,Volume,HorizontalVolumeSliderW10 Menu,Tray,Icon,%TrayIconFile%,%TrayIconNum% TrayIconNum:="-2032" use headphones as tray icon (icon 2032 in DDORes) "\System32\DDORes.dll" get tray icon from DDORes.dll TrayTip:="Alt+LeftArrow or Alt+RightArrow to adjust volume". Welcome to the wonderful world of AutoHotkey! Regards, Joe

It would be very easy to modify the Mute/Unmute feature in that script to a VolumeUp/VolumeDown feature.
#AUTOHOTKEY AUDIO BAR HOW TO#
How to create an on/off toggle to mute the system audio/sound with a single mouse click or single keystroke Re controlling sound with AHK scripts, you may find another one of my articles to be helpful: Since you're new to AutoHotkey, you may find my article helpful:Īfter that, I suggest tidbit's excellent tutorial at this site: You can expose the W10 vertical volume slider programmatically via the SndVol.exe command line (which could easily be called in an AutoHotkey script via the Run command), but not the horizontal one. I'm not aware of any way to expose the W10 horizontal volume slider programmatically. It will, indeed, increase/decrease the volume by 5% each time, but you won't see the slider. However, this is not going to give you the W10 horizontal slider.

But, again I don’t use a mouse so are there any other alternatives?Īny advice/suggestion would be greatly appreciated! Thanks in advance! I know there’s an AutoHot Key script for volume control involving moving the wheel on a mouse.
#AUTOHOTKEY AUDIO BAR WINDOWS 10#
Whereas, (as I stated) I much prefer that if there’s a way I can create a shortcut key (maybe through using AutoHot Keys/commands) to access the Windows 10 horizonal (slider) volume control. Here, I use the up/down directional keys to increase/decrease (control) the volume. Instead, I maneuver the cursor by mouse keys (the numeric key pad.) I would like to know if & how I can create a script (Hot Keys) to access the Windows 10 horizonal (slider) volume control (within the Icon try) Then, I might be able to use my left/right directional arrow keys to decrease/decrease the volume.Ģ-things: 1) I do have a short key to decrease/increase the volume control, but what comes up is the old Windows XP vertical hour-glass. Second, please also understand that I’m physically disabled (a quadriplegic), I type with a head stick/pointer, & cannot maneuver the cursor via a mouse. My inquiry strictly pertains to my PC/laptop (Windows 10). Therefore, please excuse me I I’m posting my post/question under the incorrect category within this forum. First, I’m new here on this website & with never using AutoHot keys before.
