I love the music on di.fm but I HATE the commercials. They make me physically ill. Since I can’t quite afford an account, I’ve decided the next best thing is muting the commercials. Unfortunately, I often forget that I have it muted and I site there with the sound off until something in my brain clicks. Anyway, the point is, why remember, when I can write a program to remember for me?

I downloaded Auto Hotkey and googled for a hot second and came up with this little gem:

^+m::
SoundSet, +1, , mute

#Persistent
SetTimer, Unmute, 10000
return

Unmute:
SoundSet, +1, , mute
SetTimer, Unmute, Off
exit

Now, whenever I press ctrl+shift+m, it mutes for 10 seconds. Whoop whoop!