Bugs
: K-Meleon Forum
You can talk about issues with k-meleon here. But please, for confirmed bugs, use the bug tracker to report and give feedback on bugs.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JamesD] Found the problem. Too much of the menu was in macro with the rebuildmenu statement. Revised kmm file below. [b]ActiveIP.kmm[/b] [code] # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # # ---------- ActiveIP.kmm # ---------- K-Meleon Macro Language to show EXTERNAL ip number under MAIN menu --- # ---------- Clicking on "Refresh" or the IP Number will refresh the IP number # # Dependencies : main.kmm # Resources : "whatismyip.com/automation/n09230945.asp" # Preferences : "k-meleon.ActiveIP.use" # Version : 0.4 August 21, 2009 # -------------------------------------------------------------------------------- _ActiveIP_RunLoad { macroinfo = "Refresh External IP address"; $ActiveIP_OldURL = $URL ; setpref(BOOL,"k-meleon.ActiveIP.use", true); open("whatismyip.com/automation/n09230945.asp"); } _ActiveIP_RunRead { id(ID_EDIT_SELECT_ALL); id(ID_EDIT_COPY); $ActiveIP_Clip = getclipboard(); macros(_ActiveIP_BuildMenuLine); $_ActiveIP_Milliseconds = 5 * ( 60 * 1000 ) ; exec("wscript.exe \"".$_ActiveIP_Path."\" \"".$ActiveIP_Clip."\" \"".$_ActiveIP_Milliseconds."\"") ; open($ActiveIP_OldURL) ; } _ActiveIP_Auto_stage { if (getpref(BOOL,"k-meleon.ActiveIP.use") == true ) { macros(_ActiveIP_RunRead); delpref("k-meleon.ActiveIP.use"); } } _ActiveIP_StatusBarSet { if (length($ActiveIP_Clip) != 0) { statusbar("External IP ".$ActiveIP_Clip); } } _ActiveIP_BuildMenu { $_g="Active IP"; setmenu(Main,popup,$_g,-1); $__m="TheIP"; macros(_ActiveIP_BuildMenuLine); } _ActiveIP_BuildMenuLine { $_g="Active IP"; $__m="TheIP"; setmenu($_g,inline,$__m); setmenu($__m,macro,$ActiveIP_Clip,_ActiveIP_RunLoad,-1); rebuildmenu($__m); } _ActiveIP_Initial { $ActiveIP_Clip = "Refresh" ; } _ActiveIP_GetPath { $__Data=readfile(getfolder(MacroFolder)."\\ActiveIP.kmm"); $_ActiveIP_Path=getfolder($__Data==""?UserMacroFolder:MacroFolder)."\\ActiveIP.js"; } ## - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $OnStartup=$OnStartup."_ActiveIP_GetPath;"; $OnLoad=$OnLoad."_ActiveIP_StatusBarSet;"; $OnLoad=$OnLoad."_ActiveIP_Auto_stage;"; $OnInit=$OnInit."_ActiveIP_Initial;"; $OnInit=$OnInit."_ActiveIP_BuildMenu;"; $macroModules=$macroModules."ActiveIP;"; ## *** END OF ActiveIP.kmm *** [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development