K-Meleon

KMeleonWiki > Documentation > EndUserDocs > PluginCommands


Plugin Commands for Macros


bookmarks

  plugin(bookmarks, "Config");
  plugin(bookmarks, "Add");
  plugin(bookmarks, "AddToolbar");
  plugin(bookmarks, "Edit");
  plugin(bookmarks, "AddLink");
  $page = pluginmsgex(bookmarks, "FindNick", "<Nickname>", STRING);

favorites

  plugin(favorites, "Config");
  plugin(favorites, "Add");
  plugin(favorites, "Edit");
  plugin(favorites, "AddLink");
  $page = pluginmsgex(favorites, "FindNick", "<Nickname>", STRING);

fullscreen

  plugin(fullscreen);

history

  plugin(history, "Config");
  plugin(history, "View");

hotlist

  plugin(hotlist, "Edit");
  plugin(hotlist, "AddLink");
  $page = pluginmsgex(hotlist, "FindNick", "<Nickname>", STRING);

layers

  plugin(layers, "Config");
  plugin(layers, "Open");
  plugin(layers, "OpenLink");
  plugin(layers, "OpenLinkBg");
  plugin(layers, "Next");
  plugin(layers, "Prev");
  plugin(layers, "Last");
  plugin(layers, <number>);
  plugin(layers, "Close");
  plugin(layers, "CloseAll");
  plugin(layers, "CloseAllOther");

  plugin(layers, "OpenWindow");
  plugin(layers, "CloseWindow");
  pluginmsg(layers, "OpenURL", "<URL>");
  pluginmsg(layers, "OpenURLBg", "<URL>");

  $NumLayers = pluginmsgex(layers, "NumberOfLayersInWindow", "", INT);
  $LayerData = pluginmsgex(layers, "GetLayersInWindow", "", STRING);
  pluginmsg(layers, "ReplaceLayersInWindow", "<LayerData>", STRING);

toolbars

  $bChecked = pluginmsgex(toolbars, "IsButtonChecked", "<ToolbarName>, <ButtonID>", INT);
  $bEnabled = pluginmsgex(toolbars, "IsButtonEnabled", "<ToolbarName>, <ButtonID>", INT);
  pluginmsg(toolbars, "CheckButton", "<ToolbarName>, <ButtonID>, [0|1]");
  pluginmsg(toolbars, "EnableButton", "<ToolbarName>, <ButtonID>, [0|1]");
  pluginmsg(toolbars, "SetButtonImage", "<ToolbarName>, <ButtonID>, [HOT|COLD|DEAD], Path/to/new/image.bmp[0]");
  pluginmsg(toolbars, "AddToolbar", "<ToolbarName>, <ButtonWidth>, <ButtonHeight>","");
  pluginmsg(toolbars, "AddButton", "<ToolbarName>, <ButtonName>, <Command>, <MenuName>, <TooltipText>, <ButtonWidth>, <ButtonHeight>, hot.bmp[0], cold.bmp[0], dead.bmp[0]","");

Note:

  • Currently, buttons are identified by command, not by name. Consequently, <ButtonID> must be replaced by the command associated to the button rather than the button's name.
  • AddToolbar and AddButton can be used OnSetup only (K-Meleon 1.1 and greater). Currently, AddButton can be applied to toolbars only that were previously created using AddToolbar. AddButton is not applicable to toolbars defined in toolbars.cfg!

sessions

  plugin(sessions, "Config");
  plugin(sessions, "Save");
  plugin(sessions, "Undo");
K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.