Setting Command Capabilities
 
 
 

By default, custom commands can be:

These "capabilities" can be disabled in the Init callback:

function MyCommand_Init( ctxt )
{
	var oCmd;
	oCmd = ctxt.Source;

	// ...

	// Disable keyboard mapping for this command
	oCmd.SetFlag(siSupportsKeyAssignment,false);		// true by default

	// Command cannot be used with xsibatch or xsi -script
	oCmd.SetFlag(siCannotBeUsedInBatch,true);			// false by default

	// Disable logging
	oCmd.SetFlag(siNoLogging,true);		// false by default

	// ...
	return true;
}

The SetFlag or SetFlag method is used to set the "capability flags" that control the behavior of the command: