My script for volume control hotkeys
* winkey-up/down adjusts main volume
* ctrl-winkey-up/down adjusts wave volume
* winkey and both up and down key simultaneously open/closes the volume control panel
#Up::
GetKeyState, state, Down, P
if state = D
{
Gosub, ToggleVolumeControlPanel
}
SoundSet, +10
return
#Down::
GetKeyState, state, Up, P
if state = D
{
Gosub, ToggleVolumeControlPanel
}
SoundSet, -10
return
^#Up::
SoundSet, +10, WAVE
return
^#Down::
SoundSet, -10, WAVE
return
ToggleVolumeControlPanel:
IfWinActive, Volume Control
{
WinClose
return
}
IfWinExist, Volume Control
{
WinActivate
}
else
{
Run, sndvol32
}
return
/Peter A
Some volume control hotkeys
Started by
green_seacow
, Mar 29 2004 01:21 PM
4 replies to this topic
#1
-
Posted 29 March 2004 - 01:21 PM
That's very nice; I especially like how you've made the hotkeys multi-purpose by doing something different whenever a 3rd key is being held down.
#2
-
Posted 29 March 2004 - 01:44 PM
I did something pretty similar to this. You control the main volume with ALT + Wheel. Mbutton results in a mute toggle function.
You don't need the ones in blue, I just found that I like it to be faster.
!WheelUp::Send, {Volume_Up}[color=#0000FF]{Volume_Up}[/color] !WheelDown::Send, {Volume_Down}[color=#0000FF]{Volume_Down}[/color] !Mbutton::Send, {Volume_Mute}
You don't need the ones in blue, I just found that I like it to be faster.
#4
-
Posted 24 July 2012 - 08:37 PM
Wow, necrobumping an 8 year old post! :D:D:D
#5
-
Posted 24 July 2012 - 08:49 PM