User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - Scripting Visual FoxPro »
Welcome, Guest. Please Login or Register.
May 9th, 2025, 5:12am


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


   MIDI-OX User Forum
   MIDI-OX
   Scripting Questions
(Moderator: Jamie OConnell)
   Scripting Visual FoxPro
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Scripting Visual FoxPro  (Read 827 times)
janflorijn
New Member
*



MIDI-OX Rules!

   


Posts: 3
Scripting Visual FoxPro
« on: Apr 12th, 2021, 2:50am »
Quote Quote Modify Modify

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
IP Logged
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.