MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Scripting Questions >> Trigger Script from within MIDIOX?
(Message started by: davidkhuffman on Apr 25th, 2009, 7:31pm)

Title: Trigger Script from within MIDIOX?
Post by davidkhuffman on Apr 25th, 2009, 7:31pm
It looks like the COM/script functionality in MIDIOX is designed to allow an external app to query MIDIOX, rather than have MIDIOX trigger an external script.

I'm trying to get a PgmChg message from a foot controller to kick off a script in Windows (e.g., an AutoIt .au3 script).

Is the best way to do that to run a script that has a look constantly checking MIDIOX for the presence of that PgmChg value?  Or, is there some more direct method?

Thanks,
Dave

Title: Re: Trigger Script from within MIDIOX?
Post by msalmon on Nov 23rd, 2009, 10:38am
Yes - I'd code a function to read the data as it comes in and look for pgrmChg values. then take action with WSh scripting to launch your other script. I think you could also setup midi-ox to filter out data other than pgrmChg also before it gets to your script, I'm guessing it would be more efficient for your cpu to do that.



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