Skip to content

Instantly share code, notes, and snippets.

@muscaiu
Created March 3, 2021 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muscaiu/ad49fba6bd08f2c9f470b2584db8de38 to your computer and use it in GitHub Desktop.
Save muscaiu/ad49fba6bd08f2c9f470b2584db8de38 to your computer and use it in GitHub Desktop.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; ^j::
; Send, My First Script
; return
Media_Play_Pause::
SoundSet, +1, MASTER, mute,10
SoundGet, master_mute, , mute, 10
ToolTip, Mute %master_mute% , (A_ScreenWidth // 1), (A_ScreenHeight // 1)
SetTimer, RemoveToolTip, 100000
return
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment