Main > Main Forum

Closing The Active BackGlass In Visual PinBall Script

(1/1)

spacegoogie:
I have tried everything to close the active backglass in visual PinBall. What do I need to add to the script to do this?, because everything I have tried is not working. :banghead:
This is what  I'm using at the end of The Flintstones table script:



Dim ShellCom
 Set ShellCom = CreateObject("wscript.shell")
 ShellCom.Run("C:\Backglass\ActiveBackglass-Flintstones-Backglass-Final.EXE /monitor=2")
 Set ShellCom = nothing
 
 Controller.SetDisplayPosition 540, -240, GetPlayerHWnd
 
 'End Sub
 
 Sub Table1_Exit()
 Dim ShellCom
 Set ShellCom = CreateObject("wscript.shell")
 ShellCom.Run("%COMSPEC% /C taskkill /f /im NameOfTheCreatedFile.EXE")
 Set ShellCom = nothing
 End Sub






Thanks Guys! :cheers:

Navigation

[0] Message Index

Go to full version