Page 3 of 3 FirstFirst 123
Results 81 to 87 of 87

Thread: VB6 WebView2-Binding (Edge-Chromium)

  1. #81
    Frenzied Member
    Join Date
    Jan 2020
    Posts
    1,621

    Re: VB6 WebView2-Binding (Edge-Chromium)

    vb6 webdriver,support vba,call edge chrome,
    msedgedriver.exe


    Without systematic teaching materials, many people will only use simple open web pages.

    I've tested this before, getting all the tabs, switching between any of them, and it's very time consuming to debug.

    So if you can have a master sub-installed easier to use, many people will not need to learn to use.

    JS, database, network programming, interface beautification, Google browser control, these areas have great market potential in the future.

    https://blog.csdn.net/qq_24499417/ar...ails/105602339

    https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
    Last edited by xiaoyao; Sep 4th, 2021 at 02:26 PM.

  2. #82
    Frenzied Member
    Join Date
    Jan 2020
    Posts
    1,621

    Re: VB6 WebView2-Binding (Edge-Chromium)

    Microsoft WIN11 preinstalled messaging APP teams 2.0 experience: Built on Edge Webview 2 2021-08-18

    Just saw the news, the future win11 comes with a webview2 runtime.
    There is no need to download and install it manually in the future, so it is much more convenient.

    If we study webdriver more thoroughly, what browser is automatically detected on the client? Automatically download the driver, automatically open the web page and automatically fill in the form.

    Applications such as Microsoft Office have begun to deploy WebView2 Runtime in their applications. WebView 2 Runtime has been installed on more than 200 million Windows devices.
    Last edited by xiaoyao; Sep 4th, 2021 at 02:50 PM.

  3. #83
    Junior Member saturnian's Avatar
    Join Date
    Dec 2017
    Location
    France
    Posts
    26

    Re: VB6 WebView2-Binding (Edge-Chromium)

    Hello Olaf
    Is it possible to add the management of the new DownloadStarting event of webview2 in RC6 ?.
    This would allow to change the default download directory.

    Thanks a lot

    François

    Here is the link to Microsoft Documentation of this new event
    WebView2 Win32 C++ ICoreWebView2_4 | Microsoft Docs

  4. #84
    Lively Member
    Join Date
    Apr 2017
    Location
    India
    Posts
    80

    Re: VB6 WebView2-Binding (Edge-Chromium)

    Quote Originally Posted by Schmidt View Post
    Have just finished a Binding to the new WebView2-BrowserControl (based on Edge-Chromium).
    ... .. .
    ... .. .
    The new BaseDll-package of the RC6 now includes the official WebView2Loader.dll (version 1.0.674),
    which the cWebView2-class then works against.
    ... .. .
    ... .. .
    You should now be able to test this new Edge-Browser-Binding (even on Win7-OSes) via this little VB6-Demo:
    ... .. .
    Please let me know, when something is not working as expected -
    or when you want me to include a certain extra-functionality into the new cWebView2-class.

    I want to "finalize" the new RC6-functionality at the end of the year (then switching Binary-Compatibility on).

    Happy testing...

    Olaf

    Dear Olaf,

    First thing first. Thanks a TONNN, as ever. It was great seeing your demo in action! Wow!

    Actually, fortunate that I stumbled on this forum page (when I was really desperate to find a demo on how to use WebView2 in your RC6). How I wish all these demos of yours (or) links to these kinds of forum pages were in your vbRichClient.com website in one page! Anyway, I fully understand your lack of time.

    Well, you have asked us to let you know if something is not working. I am just giving hereunder what happened when I ran the demo:

    1. For the following procedures, VB6 reported "Compile error: Procedure declaration does not match description of event or procedure having the same name"
    Code:
    Private Sub WV_AcceleratorKeyPressed(ByVal KeyState As eWebView2AccKeyState, ByVal IsExtendedKey As Long, ByVal WasKeyDown As Long, ByVal IsKeyReleased As Long, ByVal IsMenuKeyDown As Long, ByVal RepeatCount As Long, ByVal ScanCode As Long, IsHandled As Long)  
      Debug.Print "WV_AcceleratorKeyPressed"
    End Sub
    Code:
    Private Sub WV_NavigationCompleted(ByVal IsSuccess As Long, ByVal WebErrorStatus As Long)
      Debug.Print "WV_NavigationCompleted"
    End Sub
    2. Instead of immediately researching on what the abovementioned error could be due to, I just commented out both the above procedures and ran the demo. And, there it was! Your demo in super action! Thanks, Olaf! People like you give lots of joy to persons like me!

    Well, why did the compile error pop up for the abovementioned two procedures? Have they to be redeclared with different number/types of parameters? If so, kindly let me know how. In case the Compile error was due to some other reason, then kindly educate me on the same too.

    Kind Regards.
    Last edited by softv; Sep 11th, 2021 at 12:15 PM.

  5. #85
    Frenzied Member
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    1,838

    Re: VB6 WebView2-Binding (Edge-Chromium)

    Quote Originally Posted by softv View Post
    Well, why did the compile error pop up for the abovementioned two procedures? Have they to be redeclared with different number/types of parameters? If so, kindly let me know how. In case the Compile error was due to some other reason, then kindly educate me on the same too.
    See https://www.vbforums.com/showthread....=1#post5530453. Short-answer RC6 is still in a development phase and the method signatures are not yet finalized.

  6. #86
    Lively Member
    Join Date
    Apr 2017
    Location
    India
    Posts
    80

    Re: VB6 WebView2-Binding (Edge-Chromium)

    Quote Originally Posted by Schmidt View Post
    ... .. .
    As for detection, whether a given target-system already contains this runtime, ... .. .
    ... .. .
    If you ask your user beforehand like this:
    Code:
      If Len(WV.GetMostRecentInstallPath) = 0 Then 'Edge-Chromium-Webview is missing on this system
         If MsgBox("The needed MS-WebView2-runtime is missing," & vbLf & "Do you want to download the installer now?", vbYesNo) = vbYes Then
            New_c.FSO.ShellExecute "https://go.microsoft.com/fwlink/p/?LinkId=2124703"
         End If
      End If
    The little 1.7MB MS-Executable from that download above, will then determine which system the User actually runs (Win7, Win8, Win10) -
    and then download and install the larger (about 50MB-80MB) and properly matching evergreen-runtime which will work best on the given system.

    HTH

    Olaf
    Thanks a LOT, Olaf! I was thinking of doing the detection myself via a tiny function but then I also thought some function must be already existing. And, there it is! Thanks.

    Kind regards.

  7. #87
    Lively Member
    Join Date
    Apr 2017
    Location
    India
    Posts
    80

    Re: VB6 WebView2-Binding (Edge-Chromium)

    Thanks jpbro. Both the procedures work now!

    Kind regards.

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width