matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: How to make a menu and commands?
quote: Originally posted by Spunky
quote: Originally posted by matty
js code:
Shouldn't that be:
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();
}
Yes you are correct!
|
|