Try
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
RAlt::LWin
RCtrl::Rbutton
Pause::
Send {Volume_Mute}
SoundGet, master_mute, , mute
if(master_mute = "on")
{
Tooltip, Mute On
}else
{
Tooltip, Mute Off
}
SetTimer, RemoveToolTip, 2000
return
LCtrl & Down::
SoundSet -5
SoundGet, master_volume
voltip := Round(master_volume)
Tooltip, Vol: %voltip%`%
SetTimer, RemoveToolTip, 2000
return
RCtrl & Up::
SoundSet +5
SoundGet, master_volume
voltip := Round(master_volume)
Tooltip, Vol: %voltip%`%
SetTimer, RemoveToolTip, 2000
return
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return
You can learn a lot from the built-in help even though it can be confusing at first (right click the green H in the system tray while you have any AHK script running and choose help.)
I copied all the volume code from someone else's script though. :smile: