Jump to content
SpesoftPinballXConvert-It
RustyCardores

Use PBX to execute a script with multiple EXE

Recommended Posts

I have a working AHK.exe (see spoiler) that I use to launch Kodi and 2 x irfanview slide shows onto separate screens.  This works great when launched directly, but I would like to be able to get PBX to launch it for me.

If I create an "other" system PBX and try and execute this file though, I can't seem to come up with working config.  The best I've achieved in PBX launching the first line slideshow and then dropping back to the menu.

Any pointers to a possible "starting point" would be appreciated.  Cheers

Spoiler

run C:\PinballXX\Media\Kodi\IrfanviewTopper_PBX.exe /monitor=4
run C:\PinballXX\Media\Kodi\IrfanviewTableSLideshow.exe /monitor=1
sleep, 2000
run C:\Games\Kodi\Kodi.exe /monitor=3

 

Share this post


Link to post
Share on other sites

Try changing properties of the compiled exe to run as administrator?

Do you have PinballX set to run as administrator?

Every exe for your cab installation should be set to run as administrator even if your user account is administrator

Share this post


Link to post
Share on other sites
Try changing properties of the compiled exe to run as administrator?

Do you have PinballX set to run as administrator?

Every exe for your cab installation should be set to run as administrator even if your user account is administrator

 

Yep they were all run as admin.

 

 

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

I can make this partially work, if I use Launch After for Kodi.exe (starting last it gets focus) and if I put just a singular slide show exe in the system executable. 

The result is that I have Kodi operational on my backglass screen and a slide show operation on the playfield. This of course doesn't put the second slideshow up on the topper screen and it is that that I'm trying to achieve.

So even when starting Kodi separately, PBX doesn't like the single executable script starting two slideshow.exe's (all Run as Admin)

ini & xml files in spoilers...

Spoiler


[Display]
Monitor=0
rotate=270
Windowed=False
WindowWidth=1080
WindowHeight=1920
WindowX=0
WindowY=0
PlayFieldBrightness=190
WheelTextColor=ffffffff
WheelTextOutlineColor=ff000000
InfoTextColor=ffffffff
InfoTextOutlineColor=ff000000
FilterTextColor=ffffffff
FilterTextOutlineColor=ff000000
MenuColor=ffc5c5c5
WheelAutoCrop=False
ShowExitImage=False
[BackGlass]
monitor=2
x=0
y=0
width=1360
height=768
UseB2S=False
AutoPositionB2S=False
[DMD]
Enabled=True
monitor=3
x=0
y=0
width=1920
height=1080
UsePinMAME=False
AutoPositionPinMAME=False
[FileSystem]
EnableFileMatching=False
[Interface]
DesktopModeEnabled=False
EnableAdditionalDetail=False
ShowSystem=False
ShowRatings=False
EnableDefaultFilters=False
OneClickLaunch=False
[Audio]
StreamVolume=60
SampleVolume=60
PlaySoundInVideos=False
[Startup]
playsound=True
playvideo=False
StartWithWindows=Yes
[KeyCodes]
quit=69
left=67
right=90
select=71
rotate=82
pageleft=33
pageright=34
exitemulator=162
ingame=80
screenshot=75
screenshotbackglass=85
instructions=73
volumedown=109
volumeup=107
credit=53
plunger=13
[Text]
Line1=Flippers Scroll - Bottom Right Flipper Selects
Line2=Red Button Adds Coin - Green Button Starts
Featuring=
Tables=
All=Back to All
PlayGame=Play
ExitGame=Exit
Exit=EXIT Pinball
Shutdown=SHUT DOWN
ReturnToGame=Resume
Return=Back
[FuturePinball]
Enabled=False
WorkingPath=C:\Games\Future Pinball
TablePath=C:\Games\Future Pinball\Tables
Executable=Future Pinball.exe
Parameters=/open "[TABLEPATH]\[TABLEFILE]" /play /exit /arcaderender
LaunchBeforeEnabled=false
LaunchBeforeWorkingPath=
LaunchBeforeExecutable=
LaunchBeforeHideWindow=False
LaunchBeforeWaitForExit=True
LaunchAfterEnabled=False
LaunchAfterWorkingPath=
LaunchAfterExecutable=
LaunchAfterHideWindow=False
LaunchAfterWaitForExit=True
MouseClickFocus=True
FPRAMPath=C:\Games\Future Pinball\fpRAM
[VisualPinball]
Enabled=True
WorkingPath=C:\Games\VPX
TablePath=C:\Games\VPX\Tables
Executable=VPinball992.exe
Parameters=/play -"[TABLEPATH]\[TABLEFILE]"
LaunchBeforeEnabled=false
LaunchBeforeWorkingPath=
LaunchBeforeExecutable=
LaunchBeforeHideWindow=False
LaunchBeforeWaitForExit=False
LaunchAfterEnabled=False
LaunchAfterWorkingPath=
LaunchAfterExecutable=
LaunchAfterHideWindow=False
LaunchAfterWaitForExit=False
[ExitScreen]
Enabled=True
EnableExit=True
EnableShutdown=True
[StartupProgram]
Enabled=False
WorkingPath=
Executable=
Paramaters=
HideWindow=False
WaitForExit=false
[ExitProgram]
Enabled=false
WorkingPath=
Executable=
Paramaters=
HideWindow=False
WaitForExit=
[AttractMode]
Enabled=True
Timer=1
ShowFor=10
MuteAudio=False
[System_1]
Name=MAME GAMES
Enabled=True
WorkingPath=C:\Games\MAME 2
TablePath=C:\Games\MAME 2\roms
Executable=mameuifx32.exe
Parameters=[TABLEFILE]
SystemType=0
LaunchBeforeWorkingPath=
LaunchBeforeExecutable=
LaunchAfterWorkingPath=
LaunchAfterExecutable=
[AutoExit]
Enabled=False
Minutes=10
[Login]
Enabled=False
[PinballFX2]
Enabled=True
WorkingPath=C:\Program Files (x86)\Steam
Executable=Steam.exe
Parameters=-applaunch 226980
Process=Pinball FX2.exe
WaitFor=15
LaunchAfterEnabled=True
LaunchAfterWorkingPath=C:\PinballXX\Media\Pinball FX2
LaunchAfterExecutable=killFX2.bat
LaunchAfterWaitForExit=False
LaunchAfterHideWindow=False
LaunchBeforeEnabled=True
LaunchBeforeWorkingPath=C:\Program Files (x86)\Steam\steamapps\common\Pinball FX2
LaunchBeforeExecutable=BorderlessDMD.ahk
LaunchBeforeWaitForExit=False
LaunchBeforeHideWindow=False
[Internal]
lastwheelcachematchsize=0
lastselected=** JukeboxKodiSystem_3
filter_year=
filter_company=
filter_custom=Jukebox
filtername=Jukebox
[System_2]
Name=PhysMOD5
WorkingPath=C:\Games\VPX
TablePath=C:\Games\VPX\Tables
Executable=VPinball99_PhysMod5.exe
Parameters=/play -"[TABLEPATH]\[TABLEFILE]"
Enabled=True
SystemType=1
LaunchBeforeWorkingPath=
LaunchBeforeExecutable=
LaunchAfterWorkingPath=
LaunchAfterExecutable=
[SetupWizard]
EmuPath1=C:\Emulators
AssetPath1=C:\Assets
RomPath1=C:\Roms
DefaultPathPrompt=True
DownloadDatabasePrompt=True
DownloadEmulatorPrompt=True
WizardMode=1
CustomArray=
SearchArray=
SavePosition=False
SectionIndex=16
SearchText=
EmulatorIndex=0
EmulatorGroupIndex=0
DaphneIndex=0
HTMLAppsIndex=0
ExternalAppsIndex=0
RadioStationsIndex=0
NewsFeedsIndex=0
MappedDrivesIndex=0
SystemIndex=2
ShowPanel=True
FontSize=1
WindowState=0
WindowSize=951,762
WindowLocation=159,25
[GameListManager]
onlinemode=false
[Plugin_1]
Enabled=False
Name=PlugInLED.dll
[Plugin_2]
Enabled=False
Name=PlugInSpeech.dll
[Plugin_3]
Enabled=False
Name=QuickLaunch (PinballX Edition).dll
[Plugin_4]
Enabled=False
Name=ShineOn.dll
[Plugin_5]
Enabled=False
Name=Xpadder Plugin.dll
[System_3]
Name=Kodi
Enabled=True
WorkingPath=C:\PinballXX\Media\Kodi
TablePath=C:\Games\Kodi\Tables
Executable=IrfanviewTableSLideshow.exe
Parameters=
LaunchBeforeEnabled=True
LaunchBeforeWorkingPath=C:\Games\Kodi
LaunchBeforeExecutable=Kodi.exe
LaunchAfterEnabled=True
LaunchAfterWorkingPath=C:\PinballXX\Media\Kodi
LaunchAfterExecutable=killirfanview.bat
LaunchBeforeWaitForExit=False
LaunchBeforeHideWindow=False
LaunchAfterWaitForExit=False
LaunchAfterHideWindow=False
SystemType=0
WaitForProcess=
[System_4]
Name=BAM Future Pinball
Enabled=False
SystemType=2
WorkingPath=C:\Games\Future Pinball\BAM
TablePath=C:\Games\Future Pinball\Tables
Executable=FPLoader.exe
LaunchBeforeWorkingPath=
LaunchBeforeExecutable=
LaunchAfterWorkingPath=
LaunchAfterExecutable=
Parameters=/STAYINRAM /open "[TABLEPATH]\[TABLEFILE]" /play /exit
[System_6]
Name=VPX 10.1
Enabled=True
SystemType=1
WorkingPath=C:\Games\VPX
TablePath=C:\Games\VPX\Tables
Executable=VPinballX101official.exe
Parameters=/play -"[TABLEPATH]\[TABLEFILE]"
LaunchBeforeWorkingPath=
LaunchBeforeExecutable=
LaunchAfterWorkingPath=
LaunchAfterExecutable=
[System_5]
Name=SLAMT1LT
Enabled=False
SystemType=2
WorkingPath=C:\Games\Future Pinball\BAM
TablePath=C:\Games\Future Pinball\Tables
Executable=FPLoader.exe
Parameters=/STAYINRAM /open "[TABLEPATH]\[TABLEFILE]" /play /exit
LaunchBeforeWorkingPath=
LaunchBeforeExecutable=
LaunchAfterWorkingPath=
LaunchAfterExecutable=
[System_7]
Name=10.2
Enabled=True
SystemType=1
WorkingPath=C:\Games\VPX
TablePath=C:\Games\VPX\Tables\10_2
Executable=VisualPinball-10.2-OFFICIAL.exe
Parameters=/play -"[TABLEPATH]\[TABLEFILE]"
LaunchBeforeEnabled=False
LaunchBeforeWorkingPath=
LaunchBeforeExecutable=
LaunchAfterWorkingPath=
LaunchAfterExecutable=
[RealDMD]
EnableColor=False
[System_8]
Name=
WorkingPath=
TablePath=
Executable=
Parameters=
 

Spoiler

<menu>
    <game name="Kodi">
        <description>** Jukebox</description>
        <rom></rom>
        <manufacturer>kodi</manufacturer>
        <year>2013</year>
        <type>SS</type>
        <hidedmd>False</hidedmd>
        <hidebackglass>False</hidebackglass>
        <enabled>True</enabled>
        <rating>0</rating>
    </game>
</menu>

 

Share this post


Link to post
Share on other sites

OK I'm running with the "partially working" system as mentioned above, as I have simply exported my 2nd slideshow as a movie file and PBX feeds the movie from the /DMD Videos folder. 

A very simple solution and I'm kicking myself for not doing it this way to begin with, as I have always been using the /DMD Images folder to feed the static topper images there anyway.  Talk about ignoring the obvious! :-/ Der!!

 

Share this post


Link to post
Share on other sites

Does that mean that you are good to go now?

I don't run a slideshow, but if I did I would use the script itself to launch the irfanview executables and kodi. I would use PinballX ust to launch only the script.

Share this post


Link to post
Share on other sites
43 minutes ago, Carny_Priest said:

Does that mean that you are good to go now?

I don't run a slideshow, but if I did I would use the script itself to launch the irfanview executables and kodi. I would use PinballX ust to launch only the script.

Yep, I'm good now. It does what I set out to do.... just in a different way ;)

Having PinballX launch the just the script was my plan.... and it worked for launching Kodi and one slideshow, but as soon as the second slideshow was added to the script (now a total of 3 exe) it would stuff up. A timing issue perhaps?  I tried all manner of delays, but could never find a working setup.

 

 

Share this post


Link to post
Share on other sites

Maybe. I don't know much about irfanview. 

Good enough solution as long as you don't feel like you want to change up your slideshow very much. You'd have to create a video every time, but it's not like that is that hard or time consuming to do.

Share this post


Link to post
Share on other sites

True, but thankfully this is a slide show that will never need to change, as it's just to make the neon lights of the jukebox sign light in order and then flash a few times (and then loop) 

 

Topperjukeboxjpg.jpg

Share this post


Link to post
Share on other sites

Nice job. I see you've released the video as part of your topper collection at vpinball. 

Are the rest of the graphics that you use for your kodi skin available somewhere? 

Share this post


Link to post
Share on other sites

Yeah the video toppers are pretty basic, just a flashing light here and there. With a few topper builds starting, I just wanted to show the guys that PBX could put a video up there for a bit of animation.  I hope that we have a talented animator or two out there (I'm sure we do) that will come on-board and produce something far more advanced than what I'm capable off. 

Another hope (while I'm here... wink wink) is that one day PBX might duplicate the "DMD Images / DMD Videos" thing and allow "Topper Images / Topper Videos".  At present, the toppers steal the ability to display DMD Images on the DMD screen during PBX menu.  Not a big deal, as the DMD comes back to life once VP takes control, but it would be nice to be able to have both.  At present, I am using a generic DMD image of my cab's name to show on the DMD screen while in PBX menu. I'm doing this by just having it as my Windows desktop image. 

Re the Kodi graphics:  Yeah they are just images I grabbed off the web.  I'm happy to pull a copy off the cab if you want them.  There is only the one that is associated with Kodi and that's on the backglass obviously.  The Jukebox on the playfield in an irfanview slideshow of two images to make the rim lights on the Jukebox glow bright>dull>bright etc (something I need to modify really, as I would like a more obvious change in brightness... I might do that today)

I also have a stand alone version of the Jukebox setup that is launched outside of the PBX. It looks the same on the topper and backbox, but the playfield jukebox is replaced by 'Plane9' full screen visualisations. :)

 

EDIT: I just googled and the image of the glow valves comes up on the first page of results.  Heaps of similar images to select from... 

https://www.google.com.au/search?q=glow+valves+amplifier&espv=2&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwiulMbJx_LSAhWJlJQKHb0fDzMQsAQIHw&biw=1831&bih=1035

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...