|
-
Jun 7th, 2023, 07:20 PM
#11
Re: vb6 edge webview2 demo by IUnknown,without rc6.dll
excellent, it seems that it has improved, I have not looked much in detail but the fact that it can run already makes me happy, there is something essential that I did not see, in RC6 there is a JSMessage event which
Private sub WV_JSMessage(ByVal sMsg as String, ByVal sMsgContent as String, orJSONContent as cCollection)
which can be called from javascript with something like vbH().RaiseMessageEvent('" & E & "','')"
The MethodID_ICoreWebView2.txt thing is not necessary, because it does not declare an enumeration and calls each element, it is much better and more professional.
Code:
Public Enum vtb_Interfaces
Get_Settings = 1
Get_Source
Navigate
NavigateToString
Add_NavigationStarting
Remove_NavigationStarting
Add_ContentLoading
Remove_ContentLoading
Add_SourceChanged
Remove_SourceChanged
Add_HistoryChanged
Remove_HistoryChanged
Add_NavigationCompleted
Remove_NavigationCompleted
Add_FrameNavigationStarting
Remove_FrameNavigationStarting
Add_FrameNavigationCompleted
Remove_FrameNavigationCompleted
Add_ScriptDialogOpening
Remove_ScriptDialogOpening
Add_PermissionRequested
Remove_PermissionRequested
Add_ProcessFailed
Remove_ProcessFailed
AddScriptToExecuteOnDocumentCreated
RemoveScriptToExecuteOnDocumentCreated
ExecuteScript
CapturePreview
Reload
PostWebMessageAsJson
PostWebMessageAsString
Add_WebMessageReceived
Remove_WebMessageReceived
CallDevToolsProtocolMethod
Get_BrowserProcessId
Get_CanGoBack
Get_CanGoForward
GoBack
GoForward
GetDevToolsProtocolEventReceiver
Stop_
Add_NewWindowRequested
Remove_NewWindowRequested
Add_DocumentTitleChanged
Remove_DocumentTitleChanged
Get_DocumentTitle
AddHostObjectToScript
RemoveHostObjectFromScript
OpenDevToolsWindow
Add_ContainsFullScreenElementChanged
Remove_ContainsFullScreenElementChanged
Get_ContainsFullScreenElement
Add_WebResourceRequested
Remove_WebResourceRequested
AddWebResourceRequestedFilter
RemoveWebResourceRequestedFilter
Add_WindowCloseRequested
Remove_WindowCloseRequested
End Enum
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|