by andig » Sat Sep 03, 2005 4:19 am
Can I develop in JavaScript for MM? From the script folder it appears that also js should be supported, but I couldn't find any examples/ documentation anywhere. Even simple script doesn't work:
function OnStartup()
{
var UI = SDB.UI;
var Mnu = UI.AddMenuItem( UI.Menu_TrayIcon, -1, 1);
Mnu.Caption = "&Andi";
Mnu.UseScript = Script.ScriptPath;
Mnu.OnClickFunc = "ShowIt";
Mnu.IconIndex = 35;
}
function ShowIt()
{
SDB.MessageBox(SDB.Localize("Select tracks to be exported, please."), mtError, mbOk);
}
Any ideas?
Thanks,
Andi
Can I develop in JavaScript for MM? From the script folder it appears that also js should be supported, but I couldn't find any examples/ documentation anywhere. Even simple script doesn't work:
function OnStartup()
{
var UI = SDB.UI;
var Mnu = UI.AddMenuItem( UI.Menu_TrayIcon, -1, 1);
Mnu.Caption = "&Andi";
Mnu.UseScript = Script.ScriptPath;
Mnu.OnClickFunc = "ShowIt";
Mnu.IconIndex = 35;
}
function ShowIt()
{
SDB.MessageBox(SDB.Localize("Select tracks to be exported, please."), mtError, mbOk);
}
Any ideas?
Thanks,
Andi