![]() Note that I am making the assumption your scrollbar sends Volume Up and Volume Down messages, similar to normal media keys. Furthermore, if paired with an additional hotkey program (such as AutoHotkey), you should be able to adjust the volume of at least some applications in the manner you describe. It's a free utility intended to map application volumes to modified mouse scroll wheel movements (though this isn't required). In terms of a generic application to adjust audio volumes individually, your best bet would be NirSoft Volumouse. This Is Not The Solution You Are Looking For. So while what you want isn't theoretically impossible (as demonstrated below), it might not always be easy (or possible) to find a combination of software that produces the results you desire. 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. Gui, Add, pic, x7 y11 w32 h32 vPic1 icon1, %a_windir%\system32\mmsys.Yes. Gui, Add, pic, x7 y11 w32 h32 vPic1 icon40, %a_windir%\system32\mmsys.cpl Gui, Add, Progress,horizontal vMP x49 y16 w160 h20 c333cc,%master_volume% I also removed the text label and re-organized things a bit. I edited it to solve a bug i had: when muting the speaker icon exceeded window bounds. I have a pc which still uses Windows XP Professional (SP3) and i really liked this script! Sorry for resurrecting a 2007 thread, i hope this can be useful to someone. Gui, Show, NoActivate x%xpos% y%ypos% h48 w213, ahkvolume adjust display to show in bottom right corner Gui, Add, pic, x7 y13 vPic1 icon1, %a_windir%\system32\mmsys.cpl Gui, Add, pic, x7 y13 vPic1 icon40, %a_windir%\system32\mmsys.cpl GuiControl, Pic1, *Icon1 %a_windir%\system32\mmsys.cpl GuiControl, Pic1, *Icon40 %a_windir%\system32\mmsys.cpl Well done! (Oh, and I just patched it again to move to a fixed place relative to the bottom right corner of the screen instead of hardcoding the coordinate). I haven't done any GUI yet, so this was a nice gentle introduction. Note that the GUI now dynamically updates the mute graphic. In particular, I like to use Shift-Wheel to go up and down, but I also have VolUp/VolDown keys and a mute button on the keyboard and I wanted them to display the same way. Gui, Add, pic, x7 y13 vPic1 icon1, C:\WINDOWS\system32\mmsys.cplĪ little clean up and changed it to suit my setup. Gui, Add, pic, x7 y13 vPic1 icon40, C:\WINDOWS\system32\mmsys.cpl Gui, Add, Progress,horizontal vMP x48 y18 w160 h20 c333cc,%master_volume% Gui, Add, GroupBox, x3 y2 w40 h45 cblack, Gui, +ToolWindow -Caption +0x400000 +alwaysontop This routine is isolated to avoid icon flashing GuiControl, Pic1, *icon1 C:\WINDOWS\system32\mmsys.cpl GuiControl, Pic1,*icon40 C:\WINDOWS\system32\mmsys.cpl Dactilus, your script was the best I found on these forums, good job and thanks. I basically took his script from the topic "Volume control (with small GUI)" and tweaked it by switching orientation from vertical to horizontal and removing the mic on/off indicator. I have to give the real credit for this script to Dactilus. x0 y0 is the absolute upper left corner of your screen, so for every increase in x, the volume bar moves right, and for every increase in y, it moves down. Gui, Show, NoActivate x720 y460 h48 w213, volumeĮdit the number following "x" to change horizontal position and the number following "y" to change vertical position. If you want to switch the controls to another button or key, simply replace the #Up/Down/Right with the keycode for the desired key.Įdit this line of the script (It's the 8th line from the bottom) if you want to change the position of the volume bar: On my computer, I switch these controls to my keyboard's volume up/down/mute buttons. ![]() It indicates the level of volume with a speaker icon next to a horizontal bar graph. This script uses #Up/Down/Right to move volume up/down or mute, unmute.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |