Skip to content

Commit 3268e09

Browse files
authored
Update 001-BasicDemo.au3
1 parent 59ed77f commit 3268e09

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

examples/001-BasicDemo.au3

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ Func Main()
3535
_NetWebView2_Initialize($oWebV2M, $hGUI, $sProfileDirectory, 0, 0, 0, 0, True, True, 1.2, "0x2B2B2B", False)
3636
If @error Then Return SetError(@error, @extended, $oWebV2M)
3737

38-
__Example_Log(@ScriptLineNumber, "After: _NetWebView2_Initialize()")
38+
__Example_Log(@ScriptLineNumber, "After: _NetWebView2_Initialize()" & @CRlf)
3939

4040
; navigate to HTML string - full fill the object with your own offline content - without downloading any content
41+
ConsoleWrite(@CRLF)
42+
4143
__Example_Log(@ScriptLineNumber, "Before: _NetWebView2_NavigateToString()")
4244
_NetWebView2_NavigateToString($oWebV2M, __GetDemoHTML())
43-
__Example_Log(@ScriptLineNumber, "After: _NetWebView2_NavigateToString()")
45+
__Example_Log(@ScriptLineNumber, "After: _NetWebView2_NavigateToString()" & @CRlf)
4446
MsgBox($MB_TOPMOST, "TEST #" & @ScriptLineNumber, 'Watch Point - AFTER:' & @CRLF & 'navigate to string')
4547

4648
GUISetState(@SW_HIDE, $hGUI)
@@ -49,20 +51,20 @@ Func Main()
4951
; navigate to a given URL - online content
5052
__Example_Log(@ScriptLineNumber, "Before: https://www.microsoft.com")
5153
_NetWebView2_Navigate($oWebV2M, 'https://www.microsoft.com', $NETWEBVIEW2_MESSAGE__TITLE_CHANGED, "", 5 * 1000)
52-
__Example_Log(@ScriptLineNumber, "After: https://www.microsoft.com")
54+
__Example_Log(@ScriptLineNumber, "After: https://www.microsoft.com" & @CRlf)
5355
GUISetState(@SW_SHOW, $hGUI)
5456
MsgBox($MB_TOPMOST, "TEST #" & @ScriptLineNumber, 'Watch Point - AFTER:' & @CRLF & 'navigate to a given URL - online content')
5557

5658
; navigate to fake/broken url
5759
__Example_Log(@ScriptLineNumber, "Before: htpppps://www.microsoft.com")
5860
_NetWebView2_Navigate($oWebV2M, 'htpppps://www.microsoft.com', $NETWEBVIEW2_MESSAGE__TITLE_CHANGED, "", 5 * 1000)
59-
__Example_Log(@ScriptLineNumber, "After: htpppps://www.microsoft.com")
61+
__Example_Log(@ScriptLineNumber, "After: htpppps://www.microsoft.com" & @CRlf)
6062
MsgBox($MB_TOPMOST, "TEST #" & @ScriptLineNumber, 'Watch Point - AFTER:' & @CRLF & 'navigate to fake/broken url')
6163

6264
; navigate to fake not ex url
6365
__Example_Log(@ScriptLineNumber, "Before: https://w2ww.microsoft.com")
6466
_NetWebView2_Navigate($oWebV2M, 'https://w2ww.microsoft.com', $NETWEBVIEW2_MESSAGE__TITLE_CHANGED, "", 5 * 1000)
65-
__Example_Log(@ScriptLineNumber, "After: https://w2ww.microsoft.com")
67+
__Example_Log(@ScriptLineNumber, "After: https://w2ww.microsoft.com" & @CRlf)
6668
MsgBox($MB_TOPMOST, "TEST #" & @ScriptLineNumber, 'Watch Point - AFTER:' & @CRLF & 'navigate to fake/broken url' & @CRLF & 'HostNameNotResolved')
6769

6870
; Main Loop

0 commit comments

Comments
 (0)