This will show how to add an item to a context menu. It is not fully automatic. There is a MacroLanguage for K-Meleon. See this:
http://kmeleon.sourceforge.net/wiki/MacroLanguage2 There is also a list of command ID's. See this:
http://kmeleon.sourceforge.net/wiki/CommandIDs
There may be an extension which will do what you need. Check this:
http://kmext.sourceforge.net/
You can execute "wscript.exe" from a macro and pass command line arguments to it. I did not go that far yet. In this little demo I just allow the user to highlight the phone number and right click to open Dialer.exe. You still have to paste the number and click "dial".
In your profile there is a folder named "macros". Copy the following code (different font) and put it into Notepad and give the filename that is in bold type. Be careful to select all files instead of text when saving from Notepad so the file extension will be kmm instead of txt.
You can find the path to your profile folder by using EDIT - CONFIGURATION - PROFILE DIRECTORY. After you put the macro named "DialOut.kmm" into your profile, restart KM, highlight a phone number, and right click.
DialOut.kmm
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ---------- DialOut.kmm
# ---------- K-Meleon Macro Language ---------------
#
# Dependencies : - main.kmm, Dialer.exe
# Resources : -
# Preferences : -
# Version : - 0.1 2011_11_15
# --------------------------------------------------------------------------------
_DialOut_GSelect {
macroinfo = _("Copy selected text to clipboard for entering to Dialer.exe.");
id(ID_EDIT_COPY );
exec("Dialer.exe") ;
}
_DialOut_ModMenu {
setmenu("SelectedText",macro,_("Send to DialOut"),"_DialOut_GSelect",-1);
}
# - - - - - - - - - - - - - - - - - - - - - -
$OnInit=$OnInit."_DialOut_ModMenu;";
$macroModules=$macroModules."DialOut;";
Hanlon’s razor is an eponymous adage named after Robert J. Hanlon that states: “Never attribute to malice that which is adequately explained by stupidity.â€
JamesD