includes in vbscript

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

Moderators: Gurus, Addon Administrators

dr.sol

includes in vbscript

Post by dr.sol »

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
Dr.Sol

Re: includes in vbscript

Post by Dr.Sol »

I found it myself. Just write:

script.include("mysub.vbs")

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