Skip to content

Commit 56f6de0

Browse files
authored
Update README for NetWebView2Lib v1.4.0 major changes
This major update introduces significant architectural improvements, including comprehensive settings control, permanent JavaScript injection, custom context menus, focus and lifecycle management, integrated utilities, and enhanced state synchronization.
1 parent 0be6adf commit 56f6de0

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
2+
## NetWebView2Lib v1.4.0 - Major Update
3+
4+
This version introduces significant architectural improvements, focusing on deep integration with WebView2 settings and a more robust event-driven system.
5+
6+
### 🚀 Key Highlights
7+
8+
* **Comprehensive Settings Control**: Direct access to browser behaviors via new properties. Toggle DevTools, Context Menus, Script Dialogs, and Browser Accelerators (`AreDevToolsEnabled`, `AreDefaultContextMenusEnabled`, etc.) directly from your AutoIt script.
9+
* **Permanent JS Injection**: Introducing `AddInitializationScript`. Injected JavaScript (like bridges or libraries) now persists across page navigations and refreshes automatically, managed via a new Script ID tracking system.
10+
* **Custom Context Menus**: Intercept right-clicks with the new `OnContextMenu` event. Receive rich JSON metadata including coordinates, element tags, selected text, and source URLs to build native-looking custom menus.
11+
* **Focus & Lifecycle Management**: Navigation is now fully observable through `OnNavigationStarting` and `OnNavigationCompleted`.
12+
* **Integrated Utilities**: Added native methods for `Encode/DecodeURI` and `Base64` (UTF-8) to handle data transfers between AutoIt and JavaScript seamlessly.
13+
* **Enhanced State Sync**: Real-time events for Title, URL, and Zoom changes to keep your AutoIt GUI perfectly in sync with the browser state.
14+
15+
---
16+
17+
### 🛠️ Migration Note (Important)
18+
19+
Due to changes in the COM Dispatch IDs (DispIds) for better organization, it is **highly recommended** to run the included `RegCleaner.au3` before registering the new version. This ensures that any stale registry entries from previous builds are purged, preventing "Object action failed" errors.
20+
21+
22+
23+
---
24+
---
25+
26+
127
# AutoIt WebView2 Component (COM Interop)
228

329
A powerful bridge that allows **AutoIt** to use the modern **Microsoft Edge WebView2** (Chromium) engine via a C# COM wrapper. This project enables you to render modern HTML5, CSS3, and JavaScript directly inside your AutoIt applications with a 100% event-driven architecture.

0 commit comments

Comments
 (0)