If I did not have bad luck, I would have no luck at all.
Of course my internet service went out yesterday. I was going to post some code, but looks like it might not help. I will post it anyway, just so everyone will know the direction that I tried. It is not finished. I did not add the button yet.
touch_URL.kmm
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ---------- touch_URL.kmm
# ---------- K-Meleon Macro Language for URLBAR for touchscreen users --------
#
# Dependencies : main.kmm
# Reference :
http://kmeleonbrowser.org/forum/read.php?1,139262
# Version : 1.2 2016-07-13
# --------------------------------------------------------------------------------
_touch_URL_copy {
macroinfo = "Copy the URL bar text to clipboard";
setclipboard($URLBAR);
statusbar("clipboard contains contents of URL BAR.");
}
_touch_URL_edit {
macroinfo = "Edit the text in the URL bar.";
$_touch_URL_text1 = $URLBAR;
$_touch_URL_text2 = prompt( "Edit the URLBAR value." ,"URL touch edit" , $_touch_URL_text1 );
length($_touch_URL_text2)== 0 ? &_touch_URL_editNd : &_touch_URL_editWd ;
}
_touch_URL_editWd {
$__urlm1 = "Please confirm the proposed edit. \n\n" ;
$__urlm1 =$__urlm1 . "Original URL BAR text \n" . $_touch_URL_text1 . "\n\n";
$__urlm1 =$__urlm1 . "Edited URL BAR text \n" . $_touch_URL_text2 . "\n\n";
$__urlm1 =$__urlm1 . "Note that a 'YES' will replace the URLBAR contents.";
$_touch_URL_goNogo = confirm( $__urlm1 , "URL touch edit" , YESNOCANCEL, QUESTION );
$_touch_URL_goNogo == "YES" ? $URLBAR = $_touch_URL_text2 :0;
$_touch_URL_goNogo == "NO" ? &_touch_URL_edit :0;
$_touch_URL_goNogo == 0 ? &_touch_URL_editNd :0;
}
_touch_URL_editNd {
statusbar("Cancel was pressed.") ;
}
_touch_URL_SetAccel {
setaccel( "ALT SHIFT U", "macros(_touch_URL_edit)");
}
_touch_URL_BuildMenu {
$_URLt = "URL touch actions";
setmenu("&Tools", popup, $_URLt, Misc);
setmenu($_URLt, macro, "Copy", "_touch_URL_copy", 0);
setmenu($_URLt, macro, "Edit", "_touch_URL_edit", 1);
&_touch_URL_SetAccel;
}
# = = = = = = = = = = = = = = = = = = = = = = = = = = =
$OnStartup=$OnStartup."_touch_URL_BuildMenu;";
$macroModules=$macroModules."touch_URL;";