MozillaZine

list of thunderbird built-in commands?

User Help for Mozilla Thunderbird
meeotch
 
Posts: 53
Joined: November 11th, 2002, 9:16 pm

Post Posted September 18th, 2013, 4:44 pm

I'm a little bit shocked by my own inability to google up the resource named in the subject line.

Is there a list anywhere of the Thunderbird built-in commands? I'm talking about the ones that can be called from extensions such as KeyConfig - e.g. "cmd_previousMsg".

morat
 
Posts: 2949
Joined: February 3rd, 2009, 6:29 pm

Post Posted September 18th, 2013, 6:28 pm


meeotch
 
Posts: 53
Joined: November 11th, 2002, 9:16 pm

Post Posted September 18th, 2013, 7:38 pm

Wizard! Thanks so much.

Why doesn't anyone say "Wizard!" anymore? I'm bringin' it back!

morat
 
Posts: 2949
Joined: February 3rd, 2009, 6:29 pm

Post Posted September 19th, 2013, 6:33 am

You're welcome.

BTW,

There are a few commands that require extra code to run.

e.g. cmd_copyImage

Code: Select all
var image = new Image();
image.onload = function () {
  var node = document.popupNode;
  document.popupNode = image;
  goDoCommand("cmd_copyImage");
  document.popupNode = node;
}
image.src = "about:logo";

There are a few other commands in the *.cpp code not in the list.

e.g. cmd_insertText

Code: Select all
var text = "abc\ndef\nghi";
var command = "cmd_insertText";
var controller = document.commandDispatcher.getControllerForCommand(command);
if (controller && controller.isCommandEnabled(command)) {
  var params = Components.classes["@mozilla.org/embedcomp/command-params;1"].
    createInstance(Components.interfaces.nsICommandParams);
  params.setStringValue("state_data", text);
  controller.QueryInterface(Components.interfaces.nsICommandController).
    doCommandWithParams(command, params);
}

Return to Thunderbird Support


Who is online

Users browsing this forum: Bing [Bot] and 5 guests