Improvement requests
: K-Meleon Forum
Use this forum to talk about a feature you're missing. Use the bug tracker to report it if necessary.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JamesD] @ Yogi I have the "Dummy" proxy set up. It works just as you said. No surfing with Dummy selected and full surfing when direct connect is has check mark. Nothing in prefs.js says which is checked. You meant I need somehow to check to see if the menu item is checked in order to see which one is being used. I will have a go at doing that. This is the macro so far. It is very incomplete. You can see the button. [b]ProxTog.kmm[/b] [code] # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # # ---------- ProxTog.kmm # ---------- Proxy bar with icon for proxy on and proxy off # # Dependencies : main.kmm # Resources : # Preferences : - # Version : 0.1 3/17/09 # -------------------------------------------------------------------------------- #From plugin documentation #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]",""); _ProxTog_RunBar{ $_ProxTog_ToolbarName = "Proxy" ; $_ProxTog_BWidth = "52" ; $_ProxTog_BHeight = "14" ; $_ProxTog_LastItem = "" ; $_ProxTog_AddBarTag = $_ProxTog_ToolbarName .",".$_ProxTog_BWidth.",".$_ProxTog_BHeight.",". $_ProxTog_LastItem ; #alert($_ProxTog_AddBarTag, "bar tag DEBUG", INFO); pluginmsg(toolbars, "AddToolbar", $_ProxTog_AddBarTag); $_ProxTog_ButtonName = "PT" ; #$_ProxTog_Command = ID_CLOSE_ALLOTHERTAB ; $_ProxTog_Command = "macros(_ProxTog_Button)" ; $_ProxTog_MenuName = "" ; $_ProxTog_tipText = "Toggle proxy"; $_ProxTog_ImageHot = "ProxyTog.bmp[1]" ; $_ProxTog_ImageCold = "ProxyTog.bmp[0]" ; $_ProxTog_ImageDead = "ProxyTog.bmp[2]" ; $_ProxTog_AddButtonTag = $_ProxTog_ToolbarName.",".$_ProxTog_ButtonName.",".$_ProxTog_Command.",".$_ProxTog_MenuName.",".$_ProxTog_tipText.",".$_ProxTog_BWidth.",".$_ProxTog_BHeight.",".$_ProxTog_ImageHot.",".$_ProxTog_ImageCold.",".$_ProxTog_ImageDead.",".$_ProxTog_LastItem ; #alert($_ProxTog_AddButtonTag, "button tag DEBUG", INFO); pluginmsg(toolbars, "AddButton", $_ProxTog_AddButtonTag); } _ProxTog_Button{ alert("ProxTog pressed", "DEBUG", INFO); #$_SearchIconTag = $_ProxTog_ToolbarName.",".$_ProxTog_ButtonName.", COLD, ProxyTog.bmp[". $_ProxTog_Index ."]" ; #pluginmsg(toolbars, "SetButtonImage", $_SearchIconTag); } $OnSetup=$OnSetup."_ProxTog_RunBar;"; $macroModules=$macroModules."ProxTog;"; [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development