Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Solution: Automatic table image creation for PinballX


Recommended Posts

Posted

I made a batch file that automatically creates PNG snapshots of all of your VBX tables:

 

for /f %%f in ('dir /b C:\Visual Pinball\Tables\*.vpx') do (
start c:\"Visual Pinball"\vpinballx.exe -play C:\"Visual Pinball"\Tables\"%%~nf".vpx
start /w nircmd.exe cmdwait 30000 savescreenshot "C:\PinballX\Media\Visual Pinball\Table Images\%%~nf.png"
taskkill /FI "WINDOWTITLE eq Visual*"
start /w nircmd wait 2000
taskkill /IM VPinballX.exe*"
)
 

In the folder where you place the above batch file (I used "c:\visual pinball"), also download and place nircmd.exe in the same folder.  This program creates the screenshots.  You can download NirCmd here: https://www.nirsoft.net/utils/nircmd.html

The "30000" in the above batch file represents 30 seconds, the time it takes for VPX to fully load my most complicated table, before taking the screenshot.  You may need to increase this value if your computer takes longer. 

Also, backup your tables to be safe!

Tom

 

  • Like 1
Posted

PBX Recorder is nice, but you still have to manually open each table.  The batch file opens each table and grabs all of the screenshots automatically.  :)

Posted
28 minutes ago, tominohio said:

PBX Recorder is nice, but you still have to manually open each table.  The batch file opens each table and grabs all of the screenshots automatically.  :)

Not sure what you mean?  pbx recorder can loop through all tables in your pinballx databases. Anyway, like i said - nice to have an alternative, thanks.

Guest
This topic is now closed to further replies.
×
×
  • Create New...