Get your own customer support community
 

Command editor does not seem to work

I tried to add the 'chain' command via the command editor. Was able to invoke the editor and paste the following code:

function chain(commands, nameCommand){
var commands = commands.split(",");

CmdUtils.CreateCommand({
name: nameCommand,
takes: {argument : noun_arb_text},
execute: function(directObject){

//displayMessage(directObject.text);

for(var i = 0; i<commands>, directObject.text);

displayMessage(command);

var context = {
screenX: 0,
screenY: 0,
lastCmdResult: null
};
context.focusedWindow = window.document.commandDispatcher.focusedWindow;
context.focusedElement = null;//window.document.commandDispatcher.focusedElement;

window.gUbiquity.__cmdManager.updateInput(command,context);
window.gUbiquity.__cmdManager.execute(context);
}
}
});
}

However, this command does not appear in my list of commands nor can I invoke it.
 
sad I’m frustrated
Inappropriate?
1 person has this question

User_default_medium