MT128 VBAN-TEXT command

MT32-Sound Pad Lite
Post Reply
Vincent Burel
Site Admin
Posts: 2019
Joined: Sun Jan 17, 2010 12:01 pm

MT128 VBAN-TEXT command

Post by Vincent Burel »

SOUND PAD Instruction set:

Play the Sound number 6
SoundPad.Button(6).Play =1;

Stop the Sound number 6
SoundPad.Button(6).Play =0;

Stop All SoundPad Sounds
SoundPad.StopAll =1;

Load an audio file in SoundPad Button
SoundPad.Button(1).Load =”F:\MediaFolder\audiofile.wav”;


PLAYLIST Instruction set

Start first playlist
Playlist(1).Play =1;

Stop first playlist
Playlist(1).Play =0;

Stop All Playlist
Playlist.StopAll =1;

To Select the Sound item 5 in PLaylist 2
Playlist(2).Select =5;

To Play the Playlist 2 by the Sound item 7
Playlist(2).Sound(7).Play =1;

Load an audio file in Playlist Item:
Playlist(1).Sound(4).Load =”F:\MediaFolder\audiofile.wav”;


TIMELINE Instruction set:

Play TimeLine
Timeline.Play =1;

Play TimeLine Cue index 2 (cue index – as displayed in the CUE Panel).
Timeline.Cue(2).Play =1;

Play TimeLine Marker ident 2 (marker ident).
Timeline.Marker(2).Play =1;

Goto TimeLine Cue index 2 (cue index).
Timeline.Cue(2).Goto =1;

Goto TimeLine Marker ident 2 (marker ident).
Timeline.Marker(2).Goto =1;

Stop TimeLine
Timeline.Stop =1;

Pause TimeLine
Timeline.Pause =1;

Rec TimeLine
Timeline.Rec =1;

TimeLine REW
Timeline.Rew =1;

TimeLine FF
Timeline.Ff =1;

Goto TimeLine (hour, minute, second. and optionally millisecond).
Timeline.Goto =00:00:00;
Timeline.Goto =00:00:00.000;
Vincent Burel
Site Admin
Posts: 2019
Joined: Sun Jan 17, 2010 12:01 pm

MT128 VBAN-TEXT System command

Post by Vincent Burel »

System Execute
This function works like a “CreateProcess” or SheelExecute under windows and allow to start any application with a command line argument.

System.Execute(szprogram, szworkdir, szcommand);

Example to open a web page with the internet explorer:

System.Execute("C:\Program Files\Internet Explorer\iexplore.exe", "","-new www.voicemeeter.com");

Special chars like double quotes can be inserted by this sequence %’ (percent + simple quote): then %’ will be replaced by “. To insert a percent char, simply enter it double: then “%%” will be replaced by a single ‘%’. %; will be replaced by ';'

ENVIRONMENT VARIABLES
It is also possible to use system environment variable by using %envname% syntax.

Example to run the Microsoft WRITE Editor application
System.Execute("%windir%\write.exe","%TMP%","");

RUNNING DOS APPLICATION
To run command line program, you need to launch cmd.exe with /K command to specify you want to execute the command after…

Example to run ipconfig in a DOS window:

System.Execute("%windir%\system32\cmd.exe","%windir%\system32","/K ipconfig");

/C Carries out the command specified by string and then terminates
/K Carries out the command specified by string but remains

Example to ping your internet router (usual address is 192.168.1.1):
System.Execute("%windir%\system32\cmd.exe","%windir%\system32","/K ping 192.168.1.1");

System KeyDown / KeyUp / KeyPress
This functions allow to send a combination of 1 to 4 keys by a simple string describing this keyboard combination, like “CTRL+SHIFT + F10” or simply “0”.

System.KeyDown(szKey);
System.KeyUp(szKey);

Example:

System.KeyDown("A");
System.KeyDown("SHIFT+T");

System.KeyUp("A");
System.KeyUp("SHIFT+T");

System.KeyDown("CTRL+NP1");
System.KeyDown("ALT+F8");

System.KeyUp("CTRL+NP1");
System.KeyUp("ALT+F8");

KeyPress function send Down and UP message in a single function.

System.KeyPress("CTRL+NP1");
System.KeyPress("ALT+F8");


List of Key Name:
ScriptKeyList.png
ScriptKeyList.png (20.2 KiB) Viewed 36185 times
Post Reply