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 hidden or 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 |
tyvm
Lack of this option is another flaw to make a program imperfect. I always wonder if it is done on purpose.
缺少此选项是导致程序不完美的另一个缺陷。我总是怀疑这是不是故意的。
Terrifying when you think about it…😨
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
THANK YOU FOR THIS!!! 👍👍👍