green_seacow
Joined: 04 Mar 2004 Posts: 7
|
Posted: Mon Mar 29, 2004 2:21 pm Post subject: Some volume control hotkeys |
|
|
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 |
|