Standard autohotkey? Load PinballX with a hotkeyscript which waits for PinballX to shutdown, then trigger the video, close script. Something like: Run, PinballX.exeWinWaitActive, PinballXWinWaitClose, PinballXRun, VLC.exe -MyVideo.mp4ExitAppThat is a guess ^^ but close to how it should be with AHK.