Re: trying to get url of running mozzila from vb.net

[email protected]
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <ed7558a5-d60a-40e6-a453-86ed0cbd934f@s50g2000hsb.googlegroups.com>
On Aug 24, 2:58 pm, [email protected] wrote:
> On Aug 24, 2:55 am, [email protected] wrote:
>
> Please help please.
> atleast let me know weather it is possible or not????

It is possible to get the url from a running instance of Firefox, but
it's also a bit of a hack...

You need to use sendkeys.

EG:
       Dim FFURL as string = string.empty
       sendkeys.sendwait("%l") ''//that's a lowercase L
       sendkeys.sendwait("%c")
       if my.computer.clipboard.containstext then
          FFURL = my.computer.clipboard.gettext
      end if

     Also, you'll need to be sure that firefox is the frontmost window
for this to work..
    Like I said, it's a bit of a hack and unfortunately the only way I
know of to get the url.
    Hope it helps you out or leads you in a better direction.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.