I want to run a playlist file (mpcpl file- test.mpcpl) if the MPC-Player( process "mpc-hc.exe") is not running. I am trying with the script below. It runs the playlist when mpc-hc.exe is running as well as when it is not running. Please help.
Code: Select all
!n::
If !ProcessExist("mpc-hc.exe")
{
Msgbox, mpc-hc.exe does not exist
Run, K:\May2017\test.mpcpl
}
If ProcessExist("mpc-hc.exe")
{
Msgbox, mpc-hc.exists
}
ProcessExist(Name){
Process,Exist,%Name%
return Errorlevel
}
Return