Author |
Topic: Exiting MIDIOx via VBScript (Read 3705 times) |
|
doggyaugie
New Member
MIDI-OX Rules!
Posts: 2
|
|
Exiting MIDIOx via VBScript
« on: Feb 26th, 2008, 1:50pm » |
Quote Modify
|
I have a question that seems simple enough yet I can't seem to find the answer in any documentation or any sample scripts, and trial and error has not been helpful either. So I really hope someone is able to help me out. I am trying to do some automation with VBscript, MidiOx, and an audio measurement unit. The measurement unit comes with its own software that can, on its own, be controlled by vbscript just fine. However, when I try to incorporate everything into one vbs file, the audio measurement software will not close and my script hangs. I have successfully determined that the only thing causing this issue is MidiOx staying open. I don't want to have to go to "Exit WScript" or exit the program manually, I just want to control MidiOx exiting from my vbscript. What I want to know is this: is there a destructor for the MidiOx object? If not, is there some way to just close the program when I'm finished with it, but not finished with my script?
|
« Last Edit: Feb 26th, 2008, 1:53pm by doggyaugie » |
IP Logged |
|
|
|
Jamie OConnell
Administrator
Gender:
Posts: 2027
|
|
Re: Exiting MIDIOx via VBScript
« Reply #1 on: Mar 1st, 2008, 2:41am » |
Quote Modify
|
Yes, MIDI-OX COM object will destruct when you set it to NULL excplicitely or when the script ends. example: mox.ShutdownAtEnd = True set mox = nothing
|
|
IP Logged |
--Jamie Music is its own reward.
|
|
|
doggyaugie
New Member
MIDI-OX Rules!
Posts: 2
|
|
Re: Exiting MIDIOx via VBScript
« Reply #2 on: Mar 3rd, 2008, 2:34pm » |
Quote Modify
|
Thanks for the help. However, my issue is not resolved. I had tried your suggestion many times before posting, and indeed tried again after reading your response, but I still have never been able to close the MidiOx COM object strictly before the end of the script. Any other suggestions are much appreciated.
|
« Last Edit: Mar 3rd, 2008, 2:35pm by doggyaugie » |
IP Logged |
|
|
|
|