quote:Originally posted by matty js code:
js code:
js code:function OnGetScriptCommands(){ var oCommand = new Commands(); with (oCommand) { AddCommand('mycommand1', 'My command without parameter'); AddCommand('mycommand1', 'My command with parameter', 5); } return oCommand.ExportCommands(); }