Skip to content

Instantly share code, notes, and snippets.

@darrik
Created June 2, 2018 18:11
Show Gist options
  • Save darrik/11f102d393a7f6cbcab80e6c16c1768d to your computer and use it in GitHub Desktop.
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
; 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
@SwiftMove
Copy link

THANK YOU FOR THIS!!! 👍👍👍

@n0rbertt
Copy link

tyvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment