Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Some volume control hotkeys


  • Please log in to reply
4 replies to this topic
green_seacow
  • Members
  • 7 posts
  • Last active: Jun 11 2004 05:03 PM
  • Joined: 04 Mar 2004
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

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
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.

  • Guests
  • Last active:
  • Joined: --
awesome!!!!..thnks..i m a new user

ibbignerd
  • Members
  • 39 posts
  • Last active: Nov 15 2014 10:03 PM
  • Joined: 23 Jul 2012
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.

fincs
  • Moderators
  • 1662 posts
  • Last active:
  • Joined: 05 May 2007
Wow, necrobumping an 8 year old post! :D:D:D:D