Jump to content


Photo

Some volume control hotkeys


  • Please log in to reply
4 replies to this topic

#1 green_seacow

green_seacow
  • Members
  • 7 posts

Posted 29 March 2004 - 01:21 PM

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

#2 Chris

Chris
  • Administrators
  • 10727 posts

Posted 29 March 2004 - 01:44 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.

#3 Guests

  • Guests

Posted 18 July 2012 - 02:44 PM

awesome!!!!..thnks..i m a new user

#4 ibbignerd

ibbignerd
  • Members
  • 37 posts

Posted 24 July 2012 - 08:37 PM

I did something pretty similar to this. You control the main volume with ALT + Wheel. Mbutton results in a mute toggle function.

!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.

#5 fincs

fincs
  • Fellows
  • 1529 posts

Posted 24 July 2012 - 08:49 PM

Wow, necrobumping an 8 year old post! :D:D:D:D