User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - [jscript] LoadProfile »
Welcome, Guest. Please Login or Register.
May 15th, 2025, 11:43pm


Home Home Help Help Search Search Members Members Login Login Register Register


   MIDI-OX User Forum
   MIDI-OX
   Scripting Questions
(Moderator: Jamie OConnell)
   [jscript] LoadProfile
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: [jscript] LoadProfile  (Read 1580 times)
ml
Member
**



MIDI-OX Rules!

   


Posts: 13
[jscript] LoadProfile
« on: Nov 16th, 2004, 5:07pm »
Quote Quote Modify Modify

Hi all,
I began working with jscript and i cannot execute LoadProfile. WSH doesnt report any error, but midi OX doesnt load any profile as well...
 
my code:
----------------------------------------------
mox = WScript.CreateObject("MIDIOX.MoxScript.1", "On_");
mox.LoadProfile("C:\Program Files\MIDIOX\Instr\seq.master.ini")
WScript.Echo( "Press OK to end the script!" );
----------------------------------------------
 
I also tried:
mox.LoadProfile "C:\Program Files\midiox\myset.ini"
     ...but it reports error
 
 
Any ideas?
 
 
 
IP Logged
Jamie OConnell
Administrator
*****






   
WWW Email

Gender: male
Posts: 2027
Re: [jscript] LoadProfile
« Reply #1 on: Nov 17th, 2004, 12:09pm »
Quote Quote Modify Modify

If you don't have any connection point Sync, then don't specify a prefix.  WSH fails because one is specified.  Try:
 
jscript ----------------------------------------  
 
mox = WScript.CreateObject( "MIDIOX.MoxScript.1" );  
mox.LoadProfile( "C:\Program Files\MIDIOX\Instr\seq.master.ini" );  
WScript.Echo( "Press OK to end the script!" );  
 
vbscript --------------------------------------  
 
Set mox = WScript.CreateObject( "Midiox.MoxScript.1" )  
mox.LoadProfile "C:\Program Files\MIDIOX\Instr\seq.master.ini"  
MsgBox "Press OK to end the script!"
 
----------------------------------------------  
IP Logged

--Jamie
Music is its own reward.

Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »


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