@@ -43,25 +43,25 @@ Func Main()
4343
4444 ; navigate to HTML string - full fill the object with your own offline content - without downloading any content
4545 _NetWebView2_NavigateToString($_g_oWeb , __GetDemoHTML())
46-
47- MsgBox ($MB_TOPMOST , " TEST #" & @ScriptLineNumber , ' Watch Point' )
46+ MsgBox ($MB_TOPMOST , " TEST #" & @ScriptLineNumber , ' Watch Point - AFTER:' & @CRLF & ' navigate to string' )
4847
4948 GUISetState (@SW_HIDE , $hGUI )
5049 WinMove ($hGUI , ' ' , Default , Default , 1100 , 800 )
5150
5251 ; navigate to a given URL - online content
5352 _NetWebView2_Navigate($_g_oWeb , ' https://www.microsoft.com' , $NETWEBVIEW2_MESSAGE__TITLE_CHANGED , 5 * 1000 )
5453 GUISetState (@SW_SHOW , $hGUI )
55- MsgBox ($MB_TOPMOST , " TEST #" & @ScriptLineNumber , ' Watch Point' )
54+ MsgBox ($MB_TOPMOST , " TEST #" & @ScriptLineNumber , ' Watch Point - AFTER: ' & @CRLF & ' navigate to a given URL - online content ' )
5655
5756 ; navigate to fake/broken url
58- ; ~ _NetWebView2_Navigate($oWebV2M, 'htpppps://www.microsoft.com', $NETWEBVIEW2_MESSAGE__TITLE_CHANGED)
59- ; ~ MsgBox($MB_TOPMOST, "TEST #" & @ScriptLineNumber, 'Watch Point')
57+ _NetWebView2_Navigate($oWebV2M , ' htpppps://www.microsoft.com' , $NETWEBVIEW2_MESSAGE__TITLE_CHANGED , 5 * 1000 )
58+ MsgBox ($MB_TOPMOST , " TEST #" & @ScriptLineNumber , ' Watch Point - AFTER: ' & @CRLF & ' navigate to fake/broken url ' )
6059
61- ; navigate to fake/broken url
62- ; ~ _NetWebView2_Navigate($oWebV2M, 'https://w2ww.microsoft.com', $NETWEBVIEW2_MESSAGE__TITLE_CHANGED, 100)
63- ; ~ __NetWebView2_Log(@ScriptLineNumber, "After: https://w2ww.microsoft.com", 1)
64- ; ~ MsgBox($MB_TOPMOST, "TEST #" & @ScriptLineNumber, 'Watch Point')
60+ ; navigate to fake not ex url
61+ __NetWebView2_Log(@ScriptLineNumber , " Before: https://w2ww.microsoft.com" , 1 )
62+ _NetWebView2_Navigate($oWebV2M , ' https://w2ww.microsoft.com' , $NETWEBVIEW2_MESSAGE__TITLE_CHANGED , 5 * 1000 )
63+ __NetWebView2_Log(@ScriptLineNumber , " After: https://w2ww.microsoft.com" , 1 )
64+ MsgBox ($MB_TOPMOST , " TEST #" & @ScriptLineNumber , ' Watch Point - AFTER:' & @CRLF & ' navigate to fake/broken url' & @CRLF & ' HostNameNotResolved' )
6565
6666 ; Main Loop
6767 While 1
@@ -111,7 +111,8 @@ EndFunc ;==>_BridgeMyEventsHandler_OnMessageReceived
111111; HELPER: Demo HTML Content
112112; ==============================================================================
113113Func __GetDemoHTML()
114- Local $sH = ' <html><head><style>' & _
114+ Local $sH = _
115+ ' <html><head><style>' & _
115116 ' body { font-family: "Segoe UI", sans-serif; background: #202020; color: white; padding: 40px; text-align: center; }' & _
116117 ' .card { background: #2d2d2d; padding: 20px; border-radius: 8px; border: 1px solid #444; }' & _
117118 ' button { padding: 12px 24px; cursor: pointer; background: #0078d4; color: white; border: none; border-radius: 4px; font-size: 16px; margin: 5px; }' & _
0 commit comments