MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Scripting Questions >> Could not create object named "Midiox.MoxScri
(Message started by: krav_magan on Sep 14th, 2014, 3:33pm)

Title: Could not create object named "Midiox.MoxScri
Post by krav_magan on Sep 14th, 2014, 3:33pm
I'm trying to get the VB script demos to run but I get this error at line 17 for both of them:

Error: 'Could not create object named "Midiox.MoxScript.1".'
Code: 800702E4
Source: WScript.CreateObject

I'm new to scripting midiox so I'm not sure if this object is one I was supposed to replace before running or what.  Any help is appreciated.

Title: Re: Could not create object named "Midiox.Mox
Post by krav_magan on Sep 14th, 2014, 4:50pm
For some reason it works in the console but not when I open the file with wscript.exe or cscrpt.exe... any ideas why this would happen?

Title: Re: Could not create object named "Midiox.Mox
Post by krav_magan on Sep 14th, 2014, 6:25pm
It works now and I'm not sure exactly what fixed it.. I figured out that it was only working in the console if I ran the console as admin, but I couldn't have the console run as admin when I just opened the file with WHS by double clicking it.. so I created a cmd shortcut and set that to run as administrator and now it works as expected...  But I had just restarted and I didn't try it before I made this shortcut so I'm not sure if that's what did it.

Title: Re: Could not create object named "Midiox.Mox
Post by krav_magan on Sep 14th, 2014, 7:02pm
And for the sake of thoroughness I also made myself owner of the entire C: drive in win7 before restarting.



MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.