I have only recently started VBS scripting from a C++ background and while I still don't understand the basics of calling a member function from the classes in VBS from the list in the wiki. I was hoping I could clear something else up.
Is there actually restrictions on commands in auto-scripts? Or is it these scripts are ran before the mediamonkey initialisation script that is ran every startup and thus overwrites what I have added?
In the following example the MsgBox displays and the nodes do nothing. If I place these node operations into a Normal Script they work perfectly fine.
Code: Select all
Sub OnStartup
Dim Tree
Set Tree = SDB.MainTree
Tree.Node_Web.Visible = True
Tree.Node_Radio.Visible = True
MsgBox "CallMe was called by the action defined in the Scripts.ini file."
End Sub
Any ideas?