Pablo Smiraglia Posted May 19, 2018 Share Posted May 19, 2018 Tom, is it possible to pass [DESCRIPTION] as a parameter to a launch before script? the help tip in the settings tool suggests i should be able to, but it does not seem to be implemented. this is what i'm trying to implement: REM add dmd image. if not dmd table try image or default IF NOT exist "c:\Pinball\PinballX\Media\Visual Pinball\Real Color DMD Videos\%2.mp4" ( start "" dmdext play -f "C:\Pinball\PinballX\Media\Visual Pinball\Default Images\No Real Color DMD.png" -d pindmdv3 -p com3 --no-virtual ) thanks! Link to comment Share on other sites More sharing options...
Tom Speirs Posted May 20, 2018 Share Posted May 20, 2018 It should be implemented. I can't see why it wouldn't work from looking at the code. Link to comment Share on other sites More sharing options...
Pablo Smiraglia Posted May 20, 2018 Author Share Posted May 20, 2018 maybe a misspelling of the variable on mine or your side ? See the output from the script at runtime... Link to comment Share on other sites More sharing options...
Tom Speirs Posted May 21, 2018 Share Posted May 21, 2018 No, can't see anything wrong. log would show it. Link to comment Share on other sites More sharing options...
Pablo Smiraglia Posted May 21, 2018 Author Share Posted May 21, 2018 Btw, I am now away form the cab so I cannot test, but I wonder if the issue is with passing 2 parameters (eg would passing just DESCRIPTION work?) I know that was never able to pass anything other than tablefile in the past (I tried with type and manuf). I can test this in a couple of days. Txs. Link to comment Share on other sites More sharing options...
Tom Speirs Posted May 21, 2018 Share Posted May 21, 2018 The log would show. Link to comment Share on other sites More sharing options...
Pablo Smiraglia Posted May 21, 2018 Author Share Posted May 21, 2018 The log shows PBX passing the parameter correctly, though you can see form the cmd output that it is passing the variable name instead (CMD has no knowledge of the variable name, so it is clear that PBX is passing it... I don‘t think there is a quotes issue on the cmd side. maybe a quotes issue in my settings? log.txt Link to comment Share on other sites More sharing options...
Tom Speirs Posted May 21, 2018 Share Posted May 21, 2018 The log shows exactly what process.startinfo.arguments is set to. Link to comment Share on other sites More sharing options...
Pablo Smiraglia Posted May 21, 2018 Author Share Posted May 21, 2018 How could cmd get “[DESCRIPTION]” as a parameter? I will try passing DESCRIPTION as %1 and see if that makes a difference... will let you know Link to comment Share on other sites More sharing options...
Tom Speirs Posted May 21, 2018 Share Posted May 21, 2018 I agree, its strange but I cant see it. Link to comment Share on other sites More sharing options...
Pablo Smiraglia Posted May 21, 2018 Author Share Posted May 21, 2018 Tom, one more test. If I reverse the parameters, I still get the DESCRIPTION variable name rather than the value. Link to comment Share on other sites More sharing options...
Tom Speirs Posted May 21, 2018 Share Posted May 21, 2018 I'm not saying its not happening. I just can't see how. Maybe a .net framework bug. Link to comment Share on other sites More sharing options...
Pablo Smiraglia Posted May 21, 2018 Author Share Posted May 21, 2018 I get it... just trying to do a few different tests to help you troubleshoot... Link to comment Share on other sites More sharing options...
Pablo Smiraglia Posted May 26, 2018 Author Share Posted May 26, 2018 Tom, is this something you may look into further? thanks Link to comment Share on other sites More sharing options...
Tom Speirs Posted May 27, 2018 Share Posted May 27, 2018 Send me all the files and I will Link to comment Share on other sites More sharing options...
Pablo Smiraglia Posted May 27, 2018 Author Share Posted May 27, 2018 Which files would help you ? The issue seems for PBX toproperly pass DESCRIPTION, YEAR, MANUT, TYPE as parameters, just like TABLEFILE which seems to be the only parameter that works. Attaching DBs, config and start-before script... Databases.rar PinballX.ini start-VPall.bat Link to comment Share on other sites More sharing options...
Adultery Posted May 28, 2018 Share Posted May 28, 2018 ^^ Those probably. Link to comment Share on other sites More sharing options...
Pablo Smiraglia Posted June 6, 2018 Author Share Posted June 6, 2018 FWIW, the use case I had for this feature is satisfied with 3.04's introduction of Real DMD images/videos during game play so, technically, I don't need this any longer. It would be cool to have this working though... If you decide to address this, I would still help test. thanks again, pablo. Link to comment Share on other sites More sharing options...
Adultery Posted June 6, 2018 Share Posted June 6, 2018 This does that, unless it's broken for some reason... Link to comment Share on other sites More sharing options...
Recommended Posts