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.
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 "<" and ">" for "<" and ">". Enclosing PHP code in <code> tags will highlight the code (i.e. <code><?php echo 'hello world'; ?></code>).
List of valid tags:
<blockquote title="" cite=""></blockquote><cite cite="" title=""></cite><a href="" title=""></a><strong title=""></strong><em title=""></em><code title=""></code><abbr title=""></abbr><acronym title=""></acronym><ol title=""></ol><ul title=""></ul><li title=""></li>
