Development :  K-Meleon Web Browser Forum
K-Meleon development related discussions. 
How to get Selected text?
Posted by: Sesh
Date: November 08, 2001 11:57PM

Hai,
How can i pass selected text in a browser to a macro, If this is possible I can add an item in the right click menu to say "search selected text ". (by google or what ever)

thanks
-Sesh .J

Options: ReplyQuote
Re: How to get Selected text?
Posted by: Jeff
Date: November 09, 2001 05:05AM

This is not currently possible, but will probably be added to future releases.

-- Jeff

Options: ReplyQuote
Re: How to get Selected text?
Posted by: Sesh
Date: November 12, 2001 09:32AM

Thanks for the reply,
Would it also be possible to make the current url available for macros, with this I can do a lot of things, I can create a small windoz program that can add current url to a list depending on what I click.
ex: lets say that I have a program that takes two parameters the url , and the folder, this is where the content of the url will go

addUrl(url,folder);

then I can create macros like

putin_software{
addUrl($url, C:\MySoftware)
}

putin_news{
addUrl{$url,C:\Mynews)
}

And then I can assign these macros to some keys.This reduces a lot of key storkes for me.
The above example is very small. but there are very extensive uses .. ones we can parameterize a macro the possibilites are end less.

thanks
-Sesh .J

Options: ReplyQuote
Re: How to get Selected text?
Posted by: Jeff
Date: November 12, 2001 02:38PM

What I'm most likely it implement is something like a global $CUR_URL variable. Then you could do something like:

putin_software {
exec program.exe $CUR_URL c:\MySoftware
}

putin_news {
exec program.exe $CUR_URL c:\MyNews
}
-- Jeff

Options: ReplyQuote
Re: How to get Selected text?
Posted by: Sesh
Date: November 12, 2001 06:14PM

Hi Jeff
Thanks, that should do it.
-Sesh .J

Options: ReplyQuote
Re: How to get Selected text?
Posted by: Dima
Date: December 05, 2001 08:52PM

Hello
I have a quast relevant to some above
Is it possible to use browser model, like MSIE does it
I mean can I use your browser from my applications like a part of them?
Or write a macros to automate some often uses

Options: ReplyQuote


K-Meleon forum is powered by Phorum.