[jsmorley] I have a question about your code. According to Windows Copilot, is it possible to take a Screenshot from a Website with the WebView2.When clicked, this will open the web site in a baked-in version of Internet Explorer, make it full screen and in front with focus, take a .png image, and save it to your Desktop.
Quote Windows Copilot;
"Yes, you can use Microsoft Edge's WebView2 control to take screenshots of web pages. Here is an example of how you can do this with PowerShell and WebView2:"? Quote
Qestion to Windows Copilot:
To take a screenshot, does the web browser have to be open? or can it be closed.
Quote Windows Copilot;
To take a screenshot with WebView2, the web browser does not have to be open. The WebView2 control acts as an embedded browser within your application and can load and display web pages without the main browser having to be open. This means that you can take screenshots of web pages without manually opening the browser.
When you run the PowerShell script, the WebView2 control is used in the background to load the web page and take the screenshot. The browser itself remains closed.
The dll in the Script-Path is not the right one.
Do you know more about this? Is there a way?
Statistics: Posted by Rooky_89 — 26 minutes ago