@@ -36,6 +36,8 @@ Global $idLabelStatus
3636_Example()
3737
3838Func _Example()
39+ ConsoleWrite (" ! MicrosoftEdgeWebview2 : version check: " & _NetWebView2_IsAlreadyInstalled() & ' ERR=' & @error & ' EXT=' & @extended & @CRLF )
40+
3941 Local $oMyError = ObjEvent (" AutoIt.Error" , __NetWebView2_COMErrFunc)
4042 #forceref $oMyError
4143
@@ -62,20 +64,21 @@ Func _Example()
6264 Local $s_PDF_FileFullPath
6365
6466 #TIP: FitToPage: https:// stackoverflow.com/ questions/ 78820187 / how- to - change- webview2- fit- to - page- button- on- pdf- toolbar- default - to - fit- to - width#comment138971950_78821231
65- _NetWebView2_NavigateToPDF($oWebV2M , " https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" , ' #view=FitH' , 1000 , True )
67+ _NetWebView2_NavigateToPDF($oWebV2M , " https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" , ' #view=FitH' , $NETWEBVIEW2_MESSAGE__TITLE_CHANGED , " " , 5000 , 1000 , True )
68+ MsgBox ($MB_TOPMOST , " _NetWebView2_NavigateToPDF() TEST #" & @ScriptLineNumber , $s_PDF_FileFullPath , 0 , $hGUI )
6669
6770 #TIP: Open desired PAGE: https:// stackoverflow.com/ questions/ 68500164 / cycle- pdf- pages- in - wpf- webview2#comment135402565_68566860
6871 $s_PDF_FileFullPath = " file:///" & @ScriptDir & ' /FileViewerDemo_1.pdf'
69- _NetWebView2_NavigateToPDF($oWebV2M , $s_PDF_FileFullPath , ' #page=1' , 1000 , True )
70- ; ~ MsgBox($MB_TOPMOST, " _NetWebView2_NavigateToPDF() TEST #" & @ScriptLineNumber, $s_PDF_FileFullPath, 0, $hGUI)
72+ _NetWebView2_NavigateToPDF($oWebV2M , $s_PDF_FileFullPath , ' #page=1' , $NETWEBVIEW2_MESSAGE__TITLE_CHANGED , " " , 5000 , 1000 , True )
73+ MsgBox ($MB_TOPMOST , " _NetWebView2_NavigateToPDF() TEST #" & @ScriptLineNumber , $s_PDF_FileFullPath , 0 , $hGUI )
7174
7275 $s_PDF_FileFullPath = " file:///" & @ScriptDir & ' /FileViewerDemo_2.pdf'
73- _NetWebView2_NavigateToPDF($oWebV2M , $s_PDF_FileFullPath , ' #view=FitH' , 1000 , True )
74- ; ~ MsgBox($MB_TOPMOST, " _NetWebView2_NavigateToPDF() TEST #" & @ScriptLineNumber, $s_PDF_FileFullPath, 0, $hGUI)
76+ _NetWebView2_NavigateToPDF($oWebV2M , $s_PDF_FileFullPath , ' #view=FitH' , $NETWEBVIEW2_MESSAGE__TITLE_CHANGED , " " , 5000 , 1000 , True )
77+ MsgBox ($MB_TOPMOST , " _NetWebView2_NavigateToPDF() TEST #" & @ScriptLineNumber , $s_PDF_FileFullPath , 0 , $hGUI )
7578
7679 $s_PDF_FileFullPath = " file:///" & @ScriptDir & ' /FileViewerDemo_3.pdf'
77- _NetWebView2_NavigateToPDF($oWebV2M , $s_PDF_FileFullPath , ' #view=FitH' , 1000 , True )
78- ; ~ MsgBox($MB_TOPMOST, " _NetWebView2_NavigateToPDF() TEST #" & @ScriptLineNumber, $s_PDF_FileFullPath, 0, $hGUI)
80+ _NetWebView2_NavigateToPDF($oWebV2M , $s_PDF_FileFullPath , ' #view=FitH' , $NETWEBVIEW2_MESSAGE__TITLE_CHANGED , " " , 5000 , 1000 , True )
81+ MsgBox ($MB_TOPMOST , " _NetWebView2_NavigateToPDF() TEST #" & @ScriptLineNumber , $s_PDF_FileFullPath , 0 , $hGUI )
7982
8083 ; Main Loop
8184 While 1
0 commit comments