You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-54Lines changed: 46 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,45 @@
1
+
## AutoIt WebView2 Component (COM Interop)
2
+
3
+
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.
4
+
5
+
---
6
+
### 🚀 Key Features
7
+
8
+
***Chromium Engine**: Leverage the speed and security of modern Microsoft Edge.
9
+
***Bi-directional Communication**: Send messages from JS to AutoIt (`postMessage`) and execute JS from AutoIt (`ExecuteScript`).
10
+
***Event-Driven**: No more `While/Sleep` loops to check for updates. Uses COM Sinks for instant notifications.
11
+
***Advanced JSON Handling**: Includes a built-in `JsonParser` for deep-path data access (e.g., `user.items\[0].name`).
12
+
***Content Control**: Built-in Ad-blocker, CSS injection, and Zoom control.
13
+
***Dual Architecture**: Fully supports both **x86** and **x64** environments.
14
+
-**Extension Support**: Load and use Chromium extensions (unpacked).
15
+
-**Advanced Cookie & CDP Control**: Full cookie manipulation and raw access to Chrome DevTools Protocol.
16
+
-**Kiosk & Security Mode**: Enhanced methods to restrict user interaction for production environments.
17
+
18
+
---
19
+
20
+
### 🛠 Prerequisites
21
+
22
+
1.**.NET Framework 4.8** or higher.
23
+
2.**Microsoft Edge WebView2 Runtime**.
24
+
25
+
**The registration script will check for this and provide a download link if missing.*
26
+
27
+
---
28
+
### 📦 Deployment \& Installation
29
+
30
+
1.**Extract** NetWebView2Lib folder to a permanent location.
31
+
2.**Run**:
32
+
`\NetWebView2Lib\bin\Register_web2.au3` to Register
33
+
* Verifies the WebView2 Runtime presence.
34
+
* Registers `NetWebView2Lib.dll` for COM Interop on both 32-bit and 64-bit.
35
+
36
+
or `\NetWebView2Lib\bin\Unregister.au3` to Unregister
37
+
38
+
1.**Run `\Example\*`** to see the bridge in action.
@@ -18,12 +60,10 @@ This version introduces significant architectural improvements, focusing on deep
18
60
19
61
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.
@@ -63,10 +103,9 @@ The demo intercepts the native context menu and replaces it with a dynamic AutoI
63
103
64
104
-**⚡ Persistent Bridge**: Notice that even if you navigate to a new website or refresh, the "Table Export" and "Form Mapping" still work. This is thanks to the new `AddInitializationScript` which ensures our `bridge.js` is part of every page's DNA.
65
105
66
-
67
106
---
68
107
69
-
### ⚙️ How it Works: The "Context-JSON" Bridge
108
+
####⚙️ How it Works: The "Context-JSON" Bridge
70
109
71
110
The secret behind this intelligent menu is the seamless communication between the Browser's DOM and AutoIt's COM interface.
72
111
@@ -92,62 +131,15 @@ The secret behind this intelligent menu is the seamless communication between th
92
131
93
132
---
94
133
95
-
### 💡 Pro Tip for Developers:
134
+
####💡 Pro Tip for Developers:
96
135
97
136
> "You can extend this! If you want to detect specifically if a user clicked on a **Video** or a **PDF link**, just update the `bridge.js` to include those tags.
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.
108
-
109
-
---
110
-
111
-
## 🚀 Key Features
112
-
113
-
***Chromium Engine**: Leverage the speed and security of modern Microsoft Edge.
114
-
***Bi-directional Communication**: Send messages from JS to AutoIt (`postMessage`) and execute JS from AutoIt (`ExecuteScript`).
115
-
***Event-Driven**: No more `While/Sleep` loops to check for updates. Uses COM Sinks for instant notifications.
116
-
***Advanced JSON Handling**: Includes a built-in `JsonParser` for deep-path data access (e.g., `user.items\[0].name`).
117
-
***Content Control**: Built-in Ad-blocker, CSS injection, and Zoom control.
118
-
***Dual Architecture**: Fully supports both **x86** and **x64** environments.
119
-
-**Extension Support**: Load and use Chromium extensions (unpacked).
120
-
-**Advanced Cookie & CDP Control**: Full cookie manipulation and raw access to Chrome DevTools Protocol.
121
-
-**Kiosk & Security Mode**: Enhanced methods to restrict user interaction for production environments.
122
-
123
-
124
-
---
125
-
126
-
## 🛠 Prerequisites
127
-
128
-
1.**.NET Framework 4.8** or higher.
129
-
2.**Microsoft Edge WebView2 Runtime**.
130
-
131
-
**The registration script will check for this and provide a download link if missing.*
132
-
133
-
134
-
---
135
-
## 📦 Deployment \& Installation
136
-
137
-
1.**Extract** NetWebView2Lib folder to a permanent location.
138
-
2.**Run**:
139
-
`\NetWebView2Lib\bin\Register_web2.au3` to Register
140
-
* Verifies the WebView2 Runtime presence.
141
-
* Registers `NetWebView2Lib.dll` for COM Interop on both 32-bit and 64-bit.
142
-
143
-
or `\NetWebView2Lib\bin\Unregister.au3` to Unregister
144
-
145
-
1.**Run `\Example\*`** to see the bridge in action.
146
-
147
-
148
-
---
149
-
150
-
## 📖 NetWebView2Lib Version 1.4.0 - Reference (Quick View)
142
+
## 📖 NetWebView2Lib Version 1.4.0 (Quick Reference)
151
143
152
144
### Properties
153
145
@@ -469,7 +461,7 @@ Fired when the browser loses focus.
0 commit comments