devsfan1830 Posted January 22, 2022 Share Posted January 22, 2022 (edited) I have a Pixelcade LCD Marquee installed on my cabinet that requires a safe shutdown before being powered off. My plan is to use a powersaving powerstrip to cut power to all other devices when the pc powers off. This way, when I boot my machine the marquee automatically powers back on. Otherwise, id need to manually unplug and replug the marquee. Is there a way to have bigbox run a script when selecting "shutdown" so that I can run the marquee shutdown command, wait, then actually shutdown the pc? Edited January 22, 2022 by devsfan1830 Quote Link to comment Share on other sites More sharing options...
Fry Posted January 22, 2022 Share Posted January 22, 2022 This could be accomplished with the plugin API https://pluginapi.launchbox-app.com/html/3e3603e5-bab6-e510-689c-ee35c0f5f694.htm Quote Link to comment Share on other sites More sharing options...
devsfan1830 Posted January 22, 2022 Author Share Posted January 22, 2022 1 hour ago, Fry said: This could be accomplished with the plugin API https://pluginapi.launchbox-app.com/html/3e3603e5-bab6-e510-689c-ee35c0f5f694.htm Hmm. Promising. I wouldn't know where to begin making a plugin from scratch though. Quote Link to comment Share on other sites More sharing options...
Fry Posted January 22, 2022 Share Posted January 22, 2022 Can you share your script that shuts down your marquee? Quote Link to comment Share on other sites More sharing options...
devsfan1830 Posted January 22, 2022 Author Share Posted January 22, 2022 7 hours ago, Fry said: Can you share your script that shuts down your marquee? The shutdown for the marquee is an executable provided my the manufacturer. Ive attached it anyway in case its helpful. But my goal would be to execute a batch file on Bigbox exit that would trigger the shutdown exe, wait a set time, then shutdown windows. Batch files I can do, no idea how coding a plugin works. I have lilited C++, C# and Arduino coding experience. pixelcade-lcd-shutdown.exe Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted January 22, 2022 Share Posted January 22, 2022 19 minutes ago, devsfan1830 said: Batch files I can do How about a batch file then? @echo off start /w "" "F:\LaunchBox\core\BigBox.exe" start /w "" "F:\Pixelcade\pixelcade-lcd-shutdown.exe" shutdown /s /f /t 0 1 Quote Link to comment Share on other sites More sharing options...
devsfan1830 Posted January 22, 2022 Author Share Posted January 22, 2022 4 minutes ago, JoeViking245 said: How about a batch file then? @echo off start /w "" "F:\LaunchBox\core\BigBox.exe" start /w "" "F:\Pixelcade\pixelcade-lcd-shutdown.exe" shutdown /s /f /t 0 *Head slap* You are a genius. Thank you big time. That should work perfectly 1 Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted January 22, 2022 Share Posted January 22, 2022 19 minutes ago, devsfan1830 said: That should work perfectly Well, almost. Until you see that ugly Windows Command window. Create a shortcut to this batch file. Right click the shortcut and select Properties. On the Shortcut tab, next to Run:, change it to Minimized. Click OK to save. Run the batch file using the shortcut. Play games. 1 1 Quote Link to comment Share on other sites More sharing options...
Fry Posted January 22, 2022 Share Posted January 22, 2022 Great solution @JoeViking245! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.