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] I was able to get this to work without the cmd file. However I cannot get the cmd window to close until the KM 1.7 is closed. The && characters allow two commands to be sent in one call to cmd.exe. Documentation says the /c switch should terminate cmd but it does not seem to do that for me. See http://ss64.com/nt/cmd.html and also http://www.computerhope.com/cmd.htm [b]KM17n.kmm[/b] [code] # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2) # ---------- KM17n.kmm ------------------------------------------------------------------ # # Dependencies : main.kmm (Go), sendto.kmm (menus) # Resources : - K-Meleon 1.7 # Preferences : - # Author and date JamesD 2012-04-06 # Version : 2.0 # --------------------------------------------------------------------------------------------- # Note - The value of the string in line 22 must be your path to K-Meleon 1.7 # EXAMPLE == exec ("CMD /c cd \" STRING \" && k-meleon.exe -new " .$_KM17n_Open); # --------------------------------------------------------------------------------------------- KM17n_OpenPage{ macroinfo=_("Open page in K-Meleon 1.7"); $_KM17n_Open=$URL; &_KM17n_Open; } KM17n_OpenLink{ macroinfo=_("Open link in K-Meleon 1.7"); $_KM17n_Open=$LinkURL; &_KM17n_Open; } _KM17n_Open{ exec ("CMD /c cd \"C:\\Program Files\\K-Meleon 17a2\" && k-meleon.exe -new " .$_KM17n_Open); } _KM17n_BuildMenu { index($macroModules,";SendTo;")>-1?&_KM17n_BuildMenu_SendTo:&_KM17n_BuildMenu_Default; } _KM17n_BuildMenu_Default { $__w="Open In K-Meleon 1.7"; setmenu(DocumentOpenExternal,macro,$__w,KM17n_OpenPage); setmenu(LinkOpenExternal,macro,$__w,KM17n_OpenLink); } _KM17n_BuildMenu_SendTo { $__w="K-Meleon 1.7"; setmenu($_SendTo_Page,macro,$__w,KM17n_OpenPage); setmenu($_SendTo_Link,macro,$__w,KM17n_OpenLink); } $OnInit=$OnInit."_KM17n_BuildMenu;"; # -------------------------------------------------------------------------------------------------------- $macroModules=$macroModules."KM17n;"; [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development