Skip to content

Instantly share code, notes, and snippets.

@maximousblk
Created April 14, 2020 17:06
Show Gist options
  • Save maximousblk/86ed5dca33049bb90a97198beca89aed to your computer and use it in GitHub Desktop.
Save maximousblk/86ed5dca33049bb90a97198beca89aed to your computer and use it in GitHub Desktop.
#InstallKeybdHook
#Persistent
#HotkeyInterval,100
#NoEnv
SetKeyDelay, –1
SetTitleMatchMode, 2 ; Makes matching the titles easier
SendMode Input
SetWorkingDir %A_ScriptDir%
^q::
{
; put the hiding windows stuff here
Send, {Media_Play_Pause}
WinHide, VLC media player
Return
}
!^q::
{
; put the functions to show everything again here
DetectHiddenWindows, On
WinShow, VLC media player
Send, {Media_Play_Pause}
Return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment