list of thunderbird built-in commands?

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

list of thunderbird built-in commands?

Post by meeotch »

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: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: list of thunderbird built-in commands?

Post by morat »

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

Re: list of thunderbird built-in commands?

Post by meeotch »

Wizard! Thanks so much.

Why doesn't anyone say "Wizard!" anymore? I'm bringin' it back!
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: list of thunderbird built-in commands?

Post by morat »

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);
}
Post Reply