I wanted to add a menu item to the right-click menu so that I could highlight some output, right click, and send that to an alias.
for example,
I can figure out the code to get the selection length, and such, to supply that to the function, but I can't see if there's a way so that while I've got my hand on the mouse and highlighting the output, if I could just right click and execute that script, or another script that gets the selection and fires the above.
Thanks for any help.
for example,
function qSearch(Text)
for x in Text:gmatch("%w+") do
Send("exa " .. x)
Send("search " .. x)
end
end
I can figure out the code to get the selection length, and such, to supply that to the function, but I can't see if there's a way so that while I've got my hand on the mouse and highlighting the output, if I could just right click and execute that script, or another script that gets the selection and fires the above.
Thanks for any help.