includes in vbscript

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus


includes in vbscript

Post by dr.sol » Mon Mar 17, 2014 2:17 am

It is a function in sdbscriptcontrol called include, which would be convenient to use for including basic functions used when scripting in vbscript. But I can not find out how to use it. Are there anybody knowing anything about the function? Shall it be just like when including a file in a c-program, with some exceptions or are there more things to think about? I've tried things like songsdb.sdbscriptcontrol.include ("mysub.vbs") but not succeeded, so if you can help me Iwould be greatful


Re: includes in vbscript

Post by Dr.Sol » Thu Mar 20, 2014 2:19 am

I found it myself. Just write:


and the file is included.
Just to know: One thing I noted, is that when you make an include in a auto-script, the auto-script is to be placed in the folder "c:\program files\mediamonkey\scripts\auto", but the included script must be placed one folder up, i.e. "c:\program files\mediamonkey\scripts".

It works great!

Post Reply