Skip to content

Instantly share code, notes, and snippets.

@entropie
Created September 5, 2020 18:49
Show Gist options
  • Save entropie/b42d04e6732d508ea11eb4f34619d10f to your computer and use it in GitHub Desktop.
Save entropie/b42d04e6732d508ea11eb4f34619d10f to your computer and use it in GitHub Desktop.
^m::
Input, char, L1 T0.5 ;wait for 1 character, for 0.5 seconds and stores it in char
if (ErrorLevel = "TimeOut") ;time limit exceeded
return
if (char = "n")
Send, {Media_Next}
else if (char = "p")
Send, {Media_Prev}
else if (char = " ")
Send, {Media_Play_Pause}
else
send %char%
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment