Jump to content
LaunchBox Community Forums

Run a script upon selecting shutdown in bigbox?


devsfan1830

Recommended Posts

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 by devsfan1830
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

image.png.d1be7c3b8b7a7daf1e2e6431cbf21969.png

  • Click OK to save.
  • Run the batch file using the shortcut.
  • Play games.
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...