Created
June 2, 2018 18:11
-
-
Save darrik/11f102d393a7f6cbcab80e6c16c1768d to your computer and use it in GitHub Desktop.
mpc-be doesn't have mpc-hc's delete currently playing file so here's a autohotkey script
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
; enable options -> player -> title bar -> display full path to use this | |
#IfWinActive ahk_class MPC-BE | |
Delete:: | |
WinGetTitle, filePath ; filename | |
file := RegExReplace(filePath, " - MPC-BE.*", "") ; remove junk | |
Send, {Space} ; pause | |
MsgBox, 4388, , Do you want to delete %file%? | |
IfMsgBox No | |
{ | |
Send, {Space} ; unpause | |
Return | |
} | |
IfMsgBox Yes | |
{ | |
Send, . ; stop | |
Sleep, 200 | |
Send, {PgDn} ; go to next file in playlist/directory | |
Sleep, 1000 | |
FileRecycle, %file% ; Move file to recycle bin | |
Return | |
} | |
#IfWinActive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
THANK YOU FOR THIS!!! 👍👍👍