|
-
Jun 3rd, 2023, 12:36 PM
#1
Thread Starter
PowerPoster
Re: vb6 edge webview2 demo by IUnknown,without rc6.dll
HostObjectClass.cls , for eval js,get js result
a=Eval("document.title")
a=eval("33+44")
Code:
Public JsResult As String
Function Eval(js As String) As String
JsResult = ""
Dim Start As Long:Start = timeGetTime
ExecuteScript "HostClassA2.ReturnVal(" & js & ")"
While JsResult = "" And timeGetTime - Start < 1000
DoEvents: Wend
Eval = JsResult
End Function
Public Sub ReturnVal(s)
JsResult = s
End Sub
Last edited by xiaoyao; Jun 3rd, 2023 at 12:56 PM.
-
Oct 21st, 2024, 01:05 PM
#2
New Member
Re: vb6 edge webview2 demo by IUnknown,without rc6.dll
Hi Xiaoyao
I request you please provide little more details to get results back from executescript .
-
Oct 21st, 2024, 01:32 PM
#3
Thread Starter
PowerPoster
Re: vb6 edge webview2 demo by IUnknown,without rc6.dll
 Originally Posted by PrashantS
Hi Xiaoyao
I request you please provide little more details to get results back from executescript .
ok,,,,
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
|