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".
list of thunderbird built-in commands?
-
- Posts: 6403
- Joined: February 3rd, 2009, 6:29 pm
Re: list of thunderbird built-in commands?
These posts in the keyconfig forum may be of interest.
viewtopic.php?p=10746719#p10746719
viewtopic.php?p=10787261#p10787261
viewtopic.php?p=12492305#p12492305
viewtopic.php?p=10746719#p10746719
viewtopic.php?p=10787261#p10787261
viewtopic.php?p=12492305#p12492305
-
- Posts: 53
- Joined: November 11th, 2002, 9:16 pm
Re: list of thunderbird built-in commands?
Wizard! Thanks so much.
Why doesn't anyone say "Wizard!" anymore? I'm bringin' it back!
Why doesn't anyone say "Wizard!" anymore? I'm bringin' it back!
-
- Posts: 6403
- Joined: February 3rd, 2009, 6:29 pm
Re: list of thunderbird built-in commands?
You're welcome.
BTW,
There are a few commands that require extra code to run.
e.g. cmd_copyImage
There are a few other commands in the *.cpp code not in the list.
e.g. cmd_insertText
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);
}