function OnStartup() { var UI = SDB.UI; var Mnu = UI.AddMenuItem( UI.Menu_View, -1, 1); Mnu.Caption = 'JScript Example 2'; //Mnu.OnClickFunc = "Example"; Mnu.IconIndex = 35; Script.RegisterEvent(mnu, 'OnClick', 'Example'); } function Example() { SDB.Player.Play; }