sources:
https://gist.github.com/XIDA/4475692
https://sourceforge.net/p/mpcbe/tickets/247/
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#SingleInstance force
#Persistent ;Script nicht beenden nach der Auto-Execution-Section
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 2
;Menu, tray, NoStandard
Menu, tray, add ; Creates a separator line.
Menu, tray, add, Reload
Menu, tray, add, Exit
return
~delete::
IfWinActive, ahk_class MPC-BE
{
WinGetTitle, output
;MsgBox, %output%
Send, {PgDn}
Sleep 500
FileDelete, %output%
TrayTip, File Delete, %output%
}
return
Reload:
Reload
return
Exit:
ExitApp
return