Allows for use of the WebView2 Framework within AHK to create Web-based GUIs
- If you have current scripts using this library, you will almost certainly need to update your scripts.
- Overhauled methods for managing window sizing as well as borders/edges.
- In compiled scripts we can now load webpages without needing to write the files to the disk.
- Provided ability to open the webpage to all of AutoHotkey's native functions such as
MsgBox(). - The
QueryPage()andqp()methods have been removed. Instead you should now useExecuteScript().
- Updated the
CreateFileFromResource()method to accept an output file path for more flexibility.- This method is no longer called during the constructor.
- Renamed
EscapeHTML()method toEscapeHtml(). - Renamed
EscapeJS()method toEscapeJavaScript(). - Reworked the
ForEach()static method to maintain functionality that was removed fromWebView2.ahk. - Added
RemoveCallbackFromScript()method to work alongside previously addedAddCallbackToScript()method. - Streamlined the
Load()method. - Added guard clauses to various methods for improved performance.
- Reworked the
SimplePrintToPdf()function so that it continues to work with updates toWebView2.ahk. - Some garbage collection has been added as an
OnExit()callback. - Added
Bounds()method for easier handling of the WebView2 bounding rect. - The
DefaultBackgroundColorproperty now returns the color code in RGB format. - The
IsNonClientRegionSupportEnabledproperty has been added and is enabled during the constructor.
- Scripts no longer stall and provide error codes on exit due to registered event handlers.