Skip to content

Commit 1fc0392

Browse files
authored
Update 009-Auditor.au3
1 parent af07a42 commit 1fc0392

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/009-Auditor.au3

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Global $g_bHighlight = 0
1616
Global $g_bHideAllPopups = 0
1717
Global $g_bAdBlock = 0
1818
Global $g_bDarkMode = 0
19+
Global $sProfileDirectory = @ScriptDir & "\NetWebView2Lib-UserDataFolder"
1920

2021
#Region ; === GUI ===
2122
Local $hGUI = GUICreate("AutoIt Auditor", 1100, 850, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPCHILDREN))
@@ -140,7 +141,7 @@ $oEvtBridge = ObjEvent($oBridge, "Bridge_", "IBridgeEvents")
140141

141142
; ⚠️ Important: Enclose ($hGUI) in parentheses to force "Pass-by-Value".
142143
; This prevents the COM layer from changing the AutoIt variable type from Ptr to Int64.
143-
$oManager.Initialize(($hGUI), @ScriptDir & "\Profile_Auditor", 420, 45, 670, 795)
144+
$oManager.Initialize(($hGUI), $sProfileDirectory, 420, 45, 670, 795)
144145

145146
; Register Resize Event
146147
GUIRegisterMsg($WM_SIZE, "WM_SIZE")

0 commit comments

Comments
 (0)