I only found one problem to do the Alex's macro want, how to call the macro? you need an event, an accelerate, a menu, a toolbar button or a mouse gesture to call the macro.
(In pseudocode)
# You have the URL of the web page:
$URL;
# You have selected text:
$SelectedText;
open($URL.$SelectedText);
Really you don't need copy it to the clipboard. But if this is a requisite you can use:
$_aux = getclipboard();
setclipboard($SelectedText);
open($URL.getclipboard());
setclipboard($_aux);
# To open a contextmenu "SelectedText" is an example menu name you can change it to some other menu name defined:
plugin(rebarmenu, "SelectedText");
I was thinking to do in JavaScript, but onselect event is only for text objects, and for Mozilla browsers you need a lot of JS code for copy to clipboard because this is considered a dangerous action.
K-Meleon in Spanish
Edited 2 time(s). Last edit at 12/24/2009 04:20PM by desga2.