My DA Favourites
Samus Aran Open Hatch by torokun
14 Aug, 2007

Adjust volume with mouse

At work my music listening is frequently interrupted by visitors and phone calls so I need to be able to quickly turn down the volume.  This AutoHotkey script allows me to adjust the main volume in Windows by holding down the Windows key and scrolling the mouse wheel up or down.  The volume is displayed as a tooltip beside the mouse cursor as you adjust the volume.

#WheelUp::
SoundSet, +1
SoundGet, vol
voltip := Round(vol)
Tooltip, Vol: %voltip%`%
SetTimer, RemoveToolTip, 2000
return

#WheelDown::
SoundSet, -1
SoundGet, vol
voltip := Round(vol)
Tooltip, Vol: %voltip%`%
SetTimer, RemoveToolTip, 2000
return

RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return

Comments

No comments have been posted.

Add comment:


Submit Comment Preview Comment

Rules: Paragraphs and linebreaks are automatically created (two or more linebreaks create a paragraph). Linebreaks between code tags remain linebreaks. Block tags cannot be enclosed by inline tags. Red attributes are required and green is optional.

Use "&lt;" and "&gt;" for "<" and ">". Enclosing PHP code in <code> tags will highlight the code (i.e. <code>&lt;?php echo 'hello world'; ?&gt;</code>).

List of valid tags: