escuco Posted March 28, 2015 Share Posted March 28, 2015 Hello!I want to integrate a startup video (which works fine with the "Enable startup video") and a shutdown video:http://www.klomp.de/index.php/virtueller-flipper-vpin-selber-bauen/homemade-virtual-pinball-cabinet-vpin/61-virtual-pinball-intro-video-startup-frontend-pinballxAt the moment, I'm using the "Exit program" function which starts a program on exit. I'm using VLC Video Lan Player to play the shutdown video.But is there any way to play a video (or start a program like VLC) when shutting down PinballX and Windows (and not only on exit PinballX)?Thanks in advance!Jan Link to comment Share on other sites More sharing options...
horseyhorsey Posted March 28, 2015 Share Posted March 28, 2015 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. Link to comment Share on other sites More sharing options...
escuco Posted April 7, 2015 Author Share Posted April 7, 2015 Standard autohotkey?Load PinballX with a hotkeyscript which waits for PinballX to shutdown, then trigger the video, close script.That is a guess ^^ but close to how it should be with AHK.Thanks, horseyhorsey, I wondered if there is a way directly with PinballX, but I'll try it with AHK - I already used it on my arcade cab.escuco Link to comment Share on other sites More sharing options...
tthurman Posted April 8, 2015 Share Posted April 8, 2015 Nice rig escuco!Those intro / outro videos make for a nice custom touch! Link to comment Share on other sites More sharing options...
escuco Posted April 10, 2015 Author Share Posted April 10, 2015 Nice rig escuco!Those intro / outro videos make for a nice custom touch!Thanks! I finished my Visual Pinball Cab "escucos Little Joe" in the last weeks, if somebody is interested, here you'll find my building project page with some pictures and a cost report with sources of supply for the material I used:http://www.klomp.de/index.php/virtueller-flipper-vpin-selber-bauen/homemade-virtual-pinball-cabinet-vpinAnd here is a small video from the cab: 2 Link to comment Share on other sites More sharing options...
tthurman Posted April 10, 2015 Share Posted April 10, 2015 Outstanding! Link to comment Share on other sites More sharing options...
brienj Posted April 12, 2015 Share Posted April 12, 2015 You can easily make a batch file to accomplish this, and I think it is not only the simplest method, but the one I would recommend. So just have PinballX launch the batch file after it exits.@echo offVLC.exe "XXXXX"shutdown /s /f /t TTTTTReplace XXXXX with your video name with full path. Replace TTTTT with the time in seconds of the length of the video, plus maybe 1 or 2 seconds. This is also assuming you use VLC as your video player. Just replace VLC.exe with whatever video player you choose to use. 2 Link to comment Share on other sites More sharing options...
escuco Posted April 12, 2015 Author Share Posted April 12, 2015 You can easily make a batch file to accomplish this, and I think it is not only the simplest method, but the one I would recommend. So just have PinballX launch the batch file after it exits.@echo offVLC.exe "XXXXX"shutdown /s /f /t TTTTTReplace XXXXX with your video name with full path. Replace TTTTT with the time in seconds of the length of the video, plus maybe 1 or 2 seconds. This is also assuming you use VLC as your video player. Just replace VLC.exe with whatever video player you choose to use.Thanks, another nice idea!I'll give it a try. I think Windows will react to ctrl-x to abort the batch for the case, that I don't want to shutdown the machine after exiting PinballX. I like that solution more than installing another programm (e.g. AHK) on my machine. Link to comment Share on other sites More sharing options...
brienj Posted April 13, 2015 Share Posted April 13, 2015 Thanks, another nice idea!I'll give it a try. I think Windows will react to ctrl-x to abort the batch for the case, that I don't want to shutdown the machine after exiting PinballX. I like that solution more than installing another programm (e.g. AHK) on my machine.Once you run the shutdown command, you have to run "shutdown /a" in order to abort the shutdown process. Link to comment Share on other sites More sharing options...
Recommended Posts