Skip to content

Instantly share code, notes, and snippets.

@lenisko
Last active April 17, 2022 23:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lenisko/3f58dbed0f35f0781833 to your computer and use it in GitHub Desktop.
Save lenisko/3f58dbed0f35f0781833 to your computer and use it in GitHub Desktop.
Autohotkey - Move opened file in MPC-HC to Recycle Bin
; Autohotkey - Move opened file to Recycle Bin
; Working on: MPC-HC, Media Player Classic
;
; Setup: Options -> Player -> Title Bar -> Display full path
; Delete is under Del key, assuming page down is set to open next file as default.
#IfWinActive ahk_class MediaPlayerClassicW
{
Del::
WinGetTitle, Title, ahk_class MediaPlayerClassicW
Send, {PgDn}
sleep, 400
FileRecycle, %Title%
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment