If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: Capturing link text on the mouse click

Jorge -

<If> you use Internet Explorer 4.0+, you can write a Browser Helper Object
to intercept all instances of IE. To do this, I recommend you buy a copy of
"Visual Basic Shell Programming" by J.P. Hamilton, published by O'Reilly.
Look this up on www.oreilly.com for more details.

"Jorge" <jsjunk@mindspring.com> wrote in message
news:39f47a6f$1@news.devx.com...
>
> Help....
>
>
> how can I capture the text of a link in a browser when a user clicks on
it.
>
>
> If a user is in a browser and they click on a link, I would like to
capture
> the the link or the text of the link and store it in a var. Is the an API
> or sample code that can help me...
>
>
> thanks...

Re: Capturing link text on the mouse click

Jorge -

<If> you use Internet Explorer 4.0+, you can write a Browser Helper Object
to intercept all instances of IE. To do this, I recommend you buy a copy of
"Visual Basic Shell Programming" by J.P. Hamilton, published by O'Reilly.
Look this up on www.oreilly.com for more details.

"Jorge" <jsjunk@mindspring.com> wrote in message
news:39f47a6f$1@news.devx.com...
>
> Help....
>
>
> how can I capture the text of a link in a browser when a user clicks on
it.
>
>
> If a user is in a browser and they click on a link, I would like to
capture
> the the link or the text of the link and store it in a var. Is the an API
> or sample code that can help me...
>
>
> thanks...

You now have exposed a ton of methods and properties and events to optain
almost anything from a web document

Jeremy

"Jorge" <jsjunk@mindspring.com> wrote in message
news:39f47a6f$1@news.devx.com...
>
> Help....
>
>
> how can I capture the text of a link in a browser when a user clicks on
it.
>
>
> If a user is in a browser and they click on a link, I would like to
capture
> the the link or the text of the link and store it in a var. Is the an API
> or sample code that can help me...
>
>
> thanks...

You now have exposed a ton of methods and properties and events to optain
almost anything from a web document

Jeremy

"Jorge" <jsjunk@mindspring.com> wrote in message
news:39f47a6f$1@news.devx.com...
>
> Help....
>
>
> how can I capture the text of a link in a browser when a user clicks on
it.
>
>
> If a user is in a browser and they click on a link, I would like to
capture
> the the link or the text of the link and store it in a var. Is the an API
> or sample code that can help me...
>
>
> thanks...

Re: Capturing link text on the mouse click

Unfortunately this won't work. The browser I'm talking about is external to
the application and is not launched by the app. Let's say your running IE
and then you launch your vb app and want to know what you clicked on in the
browser. That's what I mean.

"Jeremy" <jeremy11@mediaone.net> wrote:
>Add the Microsoft HTML Object and the Microsoft Internet Contol to a
>project.
>
>Add a web browser control to your form.
>
>In the General Declerations
>
> Dim WithEvents TheDoc as HTMLDocument
> Dim TheLink as HTMLLinkElement
> Dim YourVarHere as String
>
>In the form load event navigate the browser control to a site.
>
> webbrowser1.navigate2 " http://www.intuicode.com "
>
>In the NavigateComplete event of the web browser control
>
> Set TheDoc = webbrowser1.document
>
>In the onclick event of the TheDoc object, or any exposed event you would
>like
>
> Set TheLink = TheDoc.parentWindow.event.srcElement
> YourVarHere = TheLink.innertext
>
>You now have exposed a ton of methods and properties and events to optain
>almost anything from a web document
>
>Jeremy
>
>"Jorge" <jsjunk@mindspring.com> wrote in message
>news:39f47a6f$1@news.devx.com...
>>
>> Help....
>>
>>
>> how can I capture the text of a link in a browser when a user clicks on
>it.
>>
>>
>> If a user is in a browser and they click on a link, I would like to
>capture
>> the the link or the text of the link and store it in a var. Is the an
API
>> or sample code that can help me...
>>
>>
>> thanks...
>
>

Re: Capturing link text on the mouse click

Unfortunately this won't work. The browser I'm talking about is external to
the application and is not launched by the app. Let's say your running IE
and then you launch your vb app and want to know what you clicked on in the
browser. That's what I mean.

"Jeremy" <jeremy11@mediaone.net> wrote:
>Add the Microsoft HTML Object and the Microsoft Internet Contol to a
>project.
>
>Add a web browser control to your form.
>
>In the General Declerations
>
> Dim WithEvents TheDoc as HTMLDocument
> Dim TheLink as HTMLLinkElement
> Dim YourVarHere as String
>
>In the form load event navigate the browser control to a site.
>
> webbrowser1.navigate2 " http://www.intuicode.com "
>
>In the NavigateComplete event of the web browser control
>
> Set TheDoc = webbrowser1.document
>
>In the onclick event of the TheDoc object, or any exposed event you would
>like
>
> Set TheLink = TheDoc.parentWindow.event.srcElement
> YourVarHere = TheLink.innertext
>
>You now have exposed a ton of methods and properties and events to optain
>almost anything from a web document
>
>Jeremy
>
>"Jorge" <jsjunk@mindspring.com> wrote in message
>news:39f47a6f$1@news.devx.com...
>>
>> Help....
>>
>>
>> how can I capture the text of a link in a browser when a user clicks on
>it.
>>
>>
>> If a user is in a browser and they click on a link, I would like to
>capture
>> the the link or the text of the link and store it in a var. Is the an
API
>> or sample code that can help me...
>>
>>
>> thanks...
>
>

Re: Capturing link text on the mouse click

"Jorge" <jsjunk@mindspring.com> wrote in message
news:39fdc2ae$1@news.devx.com...
>
> Unfortunately this won't work. The browser I'm talking about is external
to
> the application and is not launched by the app. Let's say your running IE
> and then you launch your vb app and want to know what you clicked on in
the
> browser. That's what I mean.
>
> "Jeremy" <jeremy11@mediaone.net> wrote:
> >Add the Microsoft HTML Object and the Microsoft Internet Contol to a
> >project.
> >
> >Add a web browser control to your form.
> >
> >In the General Declerations
> >
> > Dim WithEvents TheDoc as HTMLDocument
> > Dim TheLink as HTMLLinkElement
> > Dim YourVarHere as String
> >
> >In the form load event navigate the browser control to a site.
> >
> > webbrowser1.navigate2 " http://www.intuicode.com "
> >
> >In the NavigateComplete event of the web browser control
> >
> > Set TheDoc = webbrowser1.document
> >
> >In the onclick event of the TheDoc object, or any exposed event you would
> >like
> >
> > Set TheLink = TheDoc.parentWindow.event.srcElement
> > YourVarHere = TheLink.innertext
> >
> >You now have exposed a ton of methods and properties and events to optain
> >almost anything from a web document
> >
> >Jeremy
> >
> >"Jorge" <jsjunk@mindspring.com> wrote in message
> >news:39f47a6f$1@news.devx.com...
> >>
> >> Help....
> >>
> >>
> >> how can I capture the text of a link in a browser when a user clicks on
> >it.
> >>
> >>
> >> If a user is in a browser and they click on a link, I would like to
> >capture
> >> the the link or the text of the link and store it in a var. Is the an
> API
> >> or sample code that can help me...
> >>
> >>
> >> thanks...
> >
> >
>

Re: Capturing link text on the mouse click

"Jorge" <jsjunk@mindspring.com> wrote in message
news:39fdc2ae$1@news.devx.com...
>
> Unfortunately this won't work. The browser I'm talking about is external
to
> the application and is not launched by the app. Let's say your running IE
> and then you launch your vb app and want to know what you clicked on in
the
> browser. That's what I mean.
>
> "Jeremy" <jeremy11@mediaone.net> wrote:
> >Add the Microsoft HTML Object and the Microsoft Internet Contol to a
> >project.
> >
> >Add a web browser control to your form.
> >
> >In the General Declerations
> >
> > Dim WithEvents TheDoc as HTMLDocument
> > Dim TheLink as HTMLLinkElement
> > Dim YourVarHere as String
> >
> >In the form load event navigate the browser control to a site.
> >
> > webbrowser1.navigate2 " http://www.intuicode.com "
> >
> >In the NavigateComplete event of the web browser control
> >
> > Set TheDoc = webbrowser1.document
> >
> >In the onclick event of the TheDoc object, or any exposed event you would
> >like
> >
> > Set TheLink = TheDoc.parentWindow.event.srcElement
> > YourVarHere = TheLink.innertext
> >
> >You now have exposed a ton of methods and properties and events to optain
> >almost anything from a web document
> >
> >Jeremy
> >
> >"Jorge" <jsjunk@mindspring.com> wrote in message
> >news:39f47a6f$1@news.devx.com...
> >>
> >> Help....
> >>
> >>
> >> how can I capture the text of a link in a browser when a user clicks on
> >it.
> >>
> >>
> >> If a user is in a browser and they click on a link, I would like to
> >capture
> >> the the link or the text of the link and store it in a var. Is the an
> API
> >> or sample code that can help me...
> >>
> >>
> >> thanks...
> >
> >
>

Re: Capturing link text on the mouse click

yes I did, I d/l there sample browser object helper but there is no documentation
on how to use it. I would hate to spend the money on a book that "MIGHT"
help me, I'd like to make sure that the information conatained in it is good.

"Mark Alexander Bertenshaw" <mark.bertenshaw@virgin.net> wrote:
>Jorge -
>
>Did you bother looking into my suggestion? If so, how far did you get?
>
>--
>Mark Alexander Bertenshaw
>Programmer/Analyst
>PrimeResponse
>Brentford
>UK
>
>"Jorge" <jsjunk@mindspring.com> wrote in message
>news:39fdc2ae$1@news.devx.com...
>>
>> Unfortunately this won't work. The browser I'm talking about is external
>to
>> the application and is not launched by the app. Let's say your running
IE
>> and then you launch your vb app and want to know what you clicked on in
>the
>> browser. That's what I mean.
>>
>> "Jeremy" <jeremy11@mediaone.net> wrote:
>> >Add the Microsoft HTML Object and the Microsoft Internet Contol to a
>> >project.
>> >
>> >Add a web browser control to your form.
>> >
>> >In the General Declerations
>> >
>> > Dim WithEvents TheDoc as HTMLDocument
>> > Dim TheLink as HTMLLinkElement
>> > Dim YourVarHere as String
>> >
>> >In the form load event navigate the browser control to a site.
>> >
>> > webbrowser1.navigate2 " http://www.intuicode.com "
>> >
>> >In the NavigateComplete event of the web browser control
>> >
>> > Set TheDoc = webbrowser1.document
>> >
>> >In the onclick event of the TheDoc object, or any exposed event you would
>> >like
>> >
>> > Set TheLink = TheDoc.parentWindow.event.srcElement
>> > YourVarHere = TheLink.innertext
>> >
>> >You now have exposed a ton of methods and properties and events to optain
>> >almost anything from a web document
>> >
>> >Jeremy
>> >
>> >"Jorge" <jsjunk@mindspring.com> wrote in message
>> >news:39f47a6f$1@news.devx.com...
>> >>
>> >> Help....
>> >>
>> >>
>> >> how can I capture the text of a link in a browser when a user clicks
on
>> >it.
>> >>
>> >>
>> >> If a user is in a browser and they click on a link, I would like to
>> >capture
>> >> the the link or the text of the link and store it in a var. Is the
an
>> API
>> >> or sample code that can help me...
>> >>
>> >>
>> >> thanks...
>> >
>> >
>>
>
>

Re: Capturing link text on the mouse click

yes I did, I d/l there sample browser object helper but there is no documentation
on how to use it. I would hate to spend the money on a book that "MIGHT"
help me, I'd like to make sure that the information conatained in it is good.

"Mark Alexander Bertenshaw" <mark.bertenshaw@virgin.net> wrote:
>Jorge -
>
>Did you bother looking into my suggestion? If so, how far did you get?
>
>--
>Mark Alexander Bertenshaw
>Programmer/Analyst
>PrimeResponse
>Brentford
>UK
>
>"Jorge" <jsjunk@mindspring.com> wrote in message
>news:39fdc2ae$1@news.devx.com...
>>
>> Unfortunately this won't work. The browser I'm talking about is external
>to
>> the application and is not launched by the app. Let's say your running
IE
>> and then you launch your vb app and want to know what you clicked on in
>the
>> browser. That's what I mean.
>>
>> "Jeremy" <jeremy11@mediaone.net> wrote:
>> >Add the Microsoft HTML Object and the Microsoft Internet Contol to a
>> >project.
>> >
>> >Add a web browser control to your form.
>> >
>> >In the General Declerations
>> >
>> > Dim WithEvents TheDoc as HTMLDocument
>> > Dim TheLink as HTMLLinkElement
>> > Dim YourVarHere as String
>> >
>> >In the form load event navigate the browser control to a site.
>> >
>> > webbrowser1.navigate2 " http://www.intuicode.com "
>> >
>> >In the NavigateComplete event of the web browser control
>> >
>> > Set TheDoc = webbrowser1.document
>> >
>> >In the onclick event of the TheDoc object, or any exposed event you would
>> >like
>> >
>> > Set TheLink = TheDoc.parentWindow.event.srcElement
>> > YourVarHere = TheLink.innertext
>> >
>> >You now have exposed a ton of methods and properties and events to optain
>> >almost anything from a web document
>> >
>> >Jeremy
>> >
>> >"Jorge" <jsjunk@mindspring.com> wrote in message
>> >news:39f47a6f$1@news.devx.com...
>> >>
>> >> Help....
>> >>
>> >>
>> >> how can I capture the text of a link in a browser when a user clicks
on
>> >it.
>> >>
>> >>
>> >> If a user is in a browser and they click on a link, I would like to
>> >capture
>> >> the the link or the text of the link and store it in a var. Is the
an
>> API
>> >> or sample code that can help me...
>> >>
>> >>
>> >> thanks...
>> >
>> >
>>
>
>

Re: Capturing link text on the mouse click

Jorge -

Well, I suppose it comes down to economics: $23.96 + plus time-cost to read
it versus the time-cost to guess at the MSDN documentation. I don't know
what your hourly rate is, but to me, this makes sense.

As for whether this information in the book is any good, I can only tell
you that IMHO it is well-written. You could also look on the O'Reilly website
and read the sample chapter. Or why not email the author?

-------------------------
Mark Alexander Bertenshaw
Programmer/Analyst
Prime Response
Brentford
UK
"Jorge" <jsjunk@mindspring.com> wrote:
>
>yes I did, I d/l there sample browser object helper but there is no documentation
>on how to use it. I would hate to spend the money on a book that "MIGHT"
>help me, I'd like to make sure that the information conatained in it is
good.
>
>"Mark Alexander Bertenshaw" <mark.bertenshaw@virgin.net> wrote:
>>Jorge -
>>
>>Did you bother looking into my suggestion? If so, how far did you get?
>>
>>--
>>Mark Alexander Bertenshaw
>>Programmer/Analyst
>>PrimeResponse
>>Brentford
>>UK
>>
>>"Jorge" <jsjunk@mindspring.com> wrote in message
>>news:39fdc2ae$1@news.devx.com...
>>>
>>> Unfortunately this won't work. The browser I'm talking about is external
>>to
>>> the application and is not launched by the app. Let's say your running
>IE
>>> and then you launch your vb app and want to know what you clicked on
in
>>the
>>> browser. That's what I mean.
>>>
>>> "Jeremy" <jeremy11@mediaone.net> wrote:
>>> >Add the Microsoft HTML Object and the Microsoft Internet Contol to a
>>> >project.
>>> >
>>> >Add a web browser control to your form.
>>> >
>>> >In the General Declerations
>>> >
>>> > Dim WithEvents TheDoc as HTMLDocument
>>> > Dim TheLink as HTMLLinkElement
>>> > Dim YourVarHere as String
>>> >
>>> >In the form load event navigate the browser control to a site.
>>> >
>>> > webbrowser1.navigate2 " http://www.intuicode.com "
>>> >
>>> >In the NavigateComplete event of the web browser control
>>> >
>>> > Set TheDoc = webbrowser1.document
>>> >
>>> >In the onclick event of the TheDoc object, or any exposed event you
would
>>> >like
>>> >
>>> > Set TheLink = TheDoc.parentWindow.event.srcElement
>>> > YourVarHere = TheLink.innertext
>>> >
>>> >You now have exposed a ton of methods and properties and events to optain
>>> >almost anything from a web document
>>> >
>>> >Jeremy
>>> >
>>> >"Jorge" <jsjunk@mindspring.com> wrote in message
>>> >news:39f47a6f$1@news.devx.com...
>>> >>
>>> >> Help....
>>> >>
>>> >>
>>> >> how can I capture the text of a link in a browser when a user clicks
>on
>>> >it.
>>> >>
>>> >>
>>> >> If a user is in a browser and they click on a link, I would like to
>>> >capture
>>> >> the the link or the text of the link and store it in a var. Is the
>an
>>> API
>>> >> or sample code that can help me...
>>> >>
>>> >>
>>> >> thanks...
>>> >
>>> >
>>>
>>
>>
>

Re: Capturing link text on the mouse click

Jorge -

Well, I suppose it comes down to economics: $23.96 + plus time-cost to read
it versus the time-cost to guess at the MSDN documentation. I don't know
what your hourly rate is, but to me, this makes sense.

As for whether this information in the book is any good, I can only tell
you that IMHO it is well-written. You could also look on the O'Reilly website
and read the sample chapter. Or why not email the author?

-------------------------
Mark Alexander Bertenshaw
Programmer/Analyst
Prime Response
Brentford
UK
"Jorge" <jsjunk@mindspring.com> wrote:
>
>yes I did, I d/l there sample browser object helper but there is no documentation
>on how to use it. I would hate to spend the money on a book that "MIGHT"
>help me, I'd like to make sure that the information conatained in it is
good.
>
>"Mark Alexander Bertenshaw" <mark.bertenshaw@virgin.net> wrote:
>>Jorge -
>>
>>Did you bother looking into my suggestion? If so, how far did you get?
>>
>>--
>>Mark Alexander Bertenshaw
>>Programmer/Analyst
>>PrimeResponse
>>Brentford
>>UK
>>
>>"Jorge" <jsjunk@mindspring.com> wrote in message
>>news:39fdc2ae$1@news.devx.com...
>>>
>>> Unfortunately this won't work. The browser I'm talking about is external
>>to
>>> the application and is not launched by the app. Let's say your running
>IE
>>> and then you launch your vb app and want to know what you clicked on
in
>>the
>>> browser. That's what I mean.
>>>
>>> "Jeremy" <jeremy11@mediaone.net> wrote:
>>> >Add the Microsoft HTML Object and the Microsoft Internet Contol to a
>>> >project.
>>> >
>>> >Add a web browser control to your form.
>>> >
>>> >In the General Declerations
>>> >
>>> > Dim WithEvents TheDoc as HTMLDocument
>>> > Dim TheLink as HTMLLinkElement
>>> > Dim YourVarHere as String
>>> >
>>> >In the form load event navigate the browser control to a site.
>>> >
>>> > webbrowser1.navigate2 " http://www.intuicode.com "
>>> >
>>> >In the NavigateComplete event of the web browser control
>>> >
>>> > Set TheDoc = webbrowser1.document
>>> >
>>> >In the onclick event of the TheDoc object, or any exposed event you
would
>>> >like
>>> >
>>> > Set TheLink = TheDoc.parentWindow.event.srcElement
>>> > YourVarHere = TheLink.innertext
>>> >
>>> >You now have exposed a ton of methods and properties and events to optain
>>> >almost anything from a web document
>>> >
>>> >Jeremy
>>> >
>>> >"Jorge" <jsjunk@mindspring.com> wrote in message
>>> >news:39f47a6f$1@news.devx.com...
>>> >>
>>> >> Help....
>>> >>
>>> >>
>>> >> how can I capture the text of a link in a browser when a user clicks
>on
>>> >it.
>>> >>
>>> >>
>>> >> If a user is in a browser and they click on a link, I would like to
>>> >capture
>>> >> the the link or the text of the link and store it in a var. Is the
>an
>>> API
>>> >> or sample code that can help me...
>>> >>
>>> >>
>>> >> thanks...
>>> >
>>> >
>>>
>>
>>
>