Created
September 5, 2020 18:49
-
-
Save entropie/b42d04e6732d508ea11eb4f34619d10f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^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