Jump to content

Sending Smart Keywords to Firefox


Recommended Posts

I'm trying to create a utility which sends URLs to Firefox, using Firefox UDF by Thorsten Willert. A nice UDF, but it doesn't know something I would like to do.

If I type non-valid URLs in Firefox's address bar, it evaluates them into valid URLs: "bear" turns to a Google search and "rocket" to a Wikipedia article. A very comfortable feature. But when I send such queries with _FFOpenURL, they result in an empty page only.

Is there any solution to send text to the address bar directly and execute it, letting Firefox to discover what to do with it?

Thank you in advance.

Láng Attila D., LAttilaD.org

Link to comment
Share on other sites

Here is a try now I failed with:

_FFCmd("gBrowser.loadURI('"&$url&"');")

When $url was "albert einstein", what ought to lead me to the Wikipedia article on Einstein, I got an error saying

__FFSend: try{gBrowser.loadURI('albert einstein');}catch(e){'_FFCmd_Err';};

__FFRecv: _FFCmd_Err

_FFCmd ==> Error return value: _FFCmd_Err

Láng Attila D., LAttilaD.org

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...