Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[vbscript] CreateObject() servers name
#10
(2023-01-16, 13:38:04)wila Wrote: Hi Bernard,

Are you using the latest AntView version (1.1.236) ?

Yes, I use.

I'm asking as I see this code:
Code:
EdgeWebBrowser.CreateWebView

For i = 1 to 60 Step 1
  if EdgeWebBrowser.WebViewCreated Then Exit For
  wscript.sleep 1000
Next
and also:
Code:
EdgeWebBrowser.Navigate( ct_cUrl )
For i = 1 to 60 Step 1
  If pu_nEvent <> 0 Then Exit For
  wscript.sleep 1000
Next

You should be able to use CreateWebViewSync and NavigateSync for those.
Document.RequestCurrentHtml also has a synchronous version: Document.RequestCurrentHtmlSync

Thanks, I shall try this.

I'm surprised to see that the sleep works in wscript as it doesn't in most other languages.

I work with this for a long time.

Re. Cookies.

At the moment the only way to access cookies is by injecting Javascript in the page and read them that way.
However I will look into that asap as WebView2 does expose functionality for managing cookies and we're still missing that in AntView.

OK, to look...

--
Wil

Hello Wil,
Thanks for your answers.
My answers arent in you before post.
Like Vasile, I work in dBase and I try in VBScript to correct the not possible things with dBase.
Regards,
Bernard.
Reply


Messages In This Thread
RE: [vbscript] CreateObject() servers name - by Bernard Mouille - 2023-01-16, 14:00:15

Forum Jump:


Users browsing this thread: 1 Guest(s)