See if this will provide the action you requested.
Copy the RCCopyLink.kmm file to your user macro folder and restart KM. Be sure to save the file with the 'all files' option and give it the name 'RCCopyLink.kmm'. The code starts with the '# K-Meleon Macros...' line.
RCCopyLink.kmm
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ---------- RCCopyLink macro for K-Meleon --------------------
#
# Dependencies : - main.kmm
#
# -------------------------------------------------------------------
_RCCopyLink_Copy{
setclipboard( $URL );
}
_RCCopyLink_ModMenu{
### show in Document Popup ;
setmenu("DocumentSave",macro,_("Copy URL to Clipboard"),_RCCopyLink_Copy,-1);
}
$OnInit=$OnInit."_RCCopyLink_ModMenu;";
# -------------------------------------------------------
$macroModules=$macroModules."RCCopyLink;";