Skip to content

Commit d125bd7

Browse files
authored
Update 001-BasicDemo.au3
1 parent ace889f commit d125bd7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

examples/001-BasicDemo.au3

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Main()
1313

1414
Func Main()
15-
ConsoleWrite("! MicrosoftEdgeWebview2 : version check: " & _NetWebView2_IsAlreadyInstalled() & @CRLF)
15+
ConsoleWrite("! MicrosoftEdgeWebview2 : version check: " & _NetWebView2_IsAlreadyInstalled() & ' ERR=' & @error & ' EXT=' & @extended & @CRLF)
1616

1717
Local $oMyError = ObjEvent("AutoIt.Error", __NetWebView2_COMErrFunc)
1818
#forceref $oMyError
@@ -37,14 +37,14 @@ Func Main()
3737
_NetWebView2_Initialize($oWebV2M, $hGUI, $sProfileDirectory, 0, 0, 0, 0, True, True, 1.2, "0x2B2B2B", False)
3838
If @error Then Return SetError(@error, @extended, $oWebV2M)
3939

40-
__Example_Log(@ScriptLineNumber, "After: _NetWebView2_Initialize()" & @CRlf)
40+
__Example_Log(@ScriptLineNumber, "After: _NetWebView2_Initialize()" & @CRLF)
4141

4242
; navigate to HTML string - full fill the object with your own offline content - without downloading any content
4343
ConsoleWrite(@CRLF)
4444

4545
__Example_Log(@ScriptLineNumber, "Before: _NetWebView2_NavigateToString()")
4646
_NetWebView2_NavigateToString($oWebV2M, __GetDemoHTML())
47-
__Example_Log(@ScriptLineNumber, "After: _NetWebView2_NavigateToString()" & @CRlf)
47+
__Example_Log(@ScriptLineNumber, "After: _NetWebView2_NavigateToString()" & @CRLF)
4848
MsgBox($MB_TOPMOST, "TEST #" & @ScriptLineNumber, 'Watch Point - AFTER:' & @CRLF & 'navigate to string')
4949

5050
GUISetState(@SW_HIDE, $hGUI)
@@ -53,20 +53,20 @@ Func Main()
5353
; navigate to a given URL - online content
5454
__Example_Log(@ScriptLineNumber, "Before: https://www.microsoft.com")
5555
_NetWebView2_Navigate($oWebV2M, 'https://www.microsoft.com', $NETWEBVIEW2_MESSAGE__TITLE_CHANGED, "", 5 * 1000)
56-
__Example_Log(@ScriptLineNumber, "After: https://www.microsoft.com" & @CRlf)
56+
__Example_Log(@ScriptLineNumber, "After: https://www.microsoft.com" & @CRLF)
5757
GUISetState(@SW_SHOW, $hGUI)
5858
MsgBox($MB_TOPMOST, "TEST #" & @ScriptLineNumber, 'Watch Point - AFTER:' & @CRLF & 'navigate to a given URL - online content')
5959

6060
; navigate to fake/broken url
6161
__Example_Log(@ScriptLineNumber, "Before: htpppps://www.microsoft.com")
6262
_NetWebView2_Navigate($oWebV2M, 'htpppps://www.microsoft.com', $NETWEBVIEW2_MESSAGE__TITLE_CHANGED, "", 5 * 1000)
63-
__Example_Log(@ScriptLineNumber, "After: htpppps://www.microsoft.com" & @CRlf)
63+
__Example_Log(@ScriptLineNumber, "After: htpppps://www.microsoft.com" & @CRLF)
6464
MsgBox($MB_TOPMOST, "TEST #" & @ScriptLineNumber, 'Watch Point - AFTER:' & @CRLF & 'navigate to fake/broken url')
6565

6666
; navigate to fake not ex url
6767
__Example_Log(@ScriptLineNumber, "Before: https://w2ww.microsoft.com")
6868
_NetWebView2_Navigate($oWebV2M, 'https://w2ww.microsoft.com', $NETWEBVIEW2_MESSAGE__TITLE_CHANGED, "", 5 * 1000)
69-
__Example_Log(@ScriptLineNumber, "After: https://w2ww.microsoft.com" & @CRlf)
69+
__Example_Log(@ScriptLineNumber, "After: https://w2ww.microsoft.com" & @CRLF)
7070
MsgBox($MB_TOPMOST, "TEST #" & @ScriptLineNumber, 'Watch Point - AFTER:' & @CRLF & 'navigate to fake/broken url' & @CRLF & 'HostNameNotResolved')
7171

7272
; Main Loop

0 commit comments

Comments
 (0)