WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: JTaylor on October 30, 2025, 02:56:44 PM

Title: WebView2 Extender Update
Post by: JTaylor on October 30, 2025, 02:56:44 PM
I got to wondering if I could create an Extender and a registerable COM DLL in the same file.  Turns out I can.   You can now use the wbOmniWV2.dll as an Extender or register it via regsvr32 and use it with any environment that allows you to do something like 

     db = ObjectCreate("WV2.BrowserObject")

at least I am making that assumption.   Haven't tried very many :-)

     http://www.jtdata.com/anonymous/wbOmnibus.zip


Jim
Title: Re: WebView2 Extender Update
Post by: bottomleypotts on October 30, 2025, 08:15:08 PM
Pretty cool Jim.

I appreciate what you do for the community!
Title: Re: WebView2 Extender Update
Post by: td on October 31, 2025, 07:34:21 AM
Quote from: JTaylor on October 30, 2025, 02:56:44 PMI got to wondering if I could create an Extender and a registerable COM DLL in the same file.  Turns out I can.   You can now use the wbOmniWV2.dll as an Extender or register it via regsvr32 and use it with any environment that allows you to do something like 

     db = ObjectCreate("WV2.BrowserObject")

at least I am making that assumption.   Haven't tried very many :-)

     http://www.jtdata.com/anonymous/wbOmnibus.zip

You could make your extender self-registering. We have done that with one or two of our nonpublic extenders. 
Title: Re: WebView2 Extender Update
Post by: JTaylor on October 31, 2025, 08:07:10 AM
I will have to look into this option.  Thanks.

Also, in case anyone doesn't know, this Extender allows you to embed a WebBrowser into a dialog.  You can also skip the embedding option as well.  It can be visible or not, in case you want browsing without the browser taking up space, nice for quiet scraping. It also allows for DOM access and HTML, XML and JSON parsing.

Jim


Quote from: td on Today at 07:34:21 AMYou could make your extender self-registering. We have done that with one or two of our nonpublic extenders. 
Title: Re: WebView2 Extender Update
Post by: spl on October 31, 2025, 09:00:13 AM
Quote from: JTaylor on Today at 08:07:10 AMIt can be visible or not, in case you want browsing without the browser taking up space, nice for quiet scraping. It also allows for DOM access and HTML, XML and JSON parsing.

https://forum.winbatch.com/index.php?topic=3262.msg19172#msg19172