|
||
Title: Scripting Visual FoxPro Post by janflorijn on Apr 12th, 2021, 2:50am Hi all, I trie to use scripting in Visual FoxPro. Some remarks. I do not need WScript. I can create the object and see the methods etc. in Visual Foxpro. I do not use routing in MIDI-OX because I want to modify the midi messages and route in my script. The main issue seems to be that the OnTrigger_ functions is no called. Here my code in VFP: CLOSE ALL CLEAR ALL mox = CREATEOBJECT("MIDIOX.MOXScript.1","OnTrigger_") mox.FireMidiInput = 1 mox.DivertMidiInput = 1 stts = 0 dat1 = 0 dat2 = 0 READ EVENTS PROCEDURE OnTrigger_MidiInput PARAMETERS timestamp, port, stts, dat1, dat2 mox.OutputMidiMsg(-1, stts+1, dat1, dat2) ENDPROC *mox.FireMidiInput = 0 *mox.DivertMidiInput = 0 CLOSE ALL CLEAR all mox = null Kin regards, Jan Flikweert |
||
MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1! YaBB © 2000-2003. All Rights Reserved. |