Jump to content

Recommended Posts

Posted
  On 2/18/2021 at 6:01 AM, LarsJ said:

What I'm trying to say is simply that the entire WebView project is based on techniques and code that are so complicated that AutoIt programmers will not find it attractive and therefore will not use it. We run the risk that a UDF as a result of the project will simply not be used. 

Expand  

Sorry, but I disagree. Personally I am convinced that this tool is very useful and considering that this topic has had almost 3000 views in almost 3 months it is a sign that there is a good interest (and expectation) around this udf by AutoIt programmers. I was already convinced when I drafted this other post (even if for another 'engine').
@LarsJ, please don't go away.... :P

 

  On 2/18/2021 at 6:28 AM, argumentum said:

My point is that functions that resemble what is the IE UDF would be used ( maybe ? ).

Expand  

it's not exactly correct to consider this stuff as a replacement for the IE.udf. IE.udf can be better replaced by @Danp2's WebDriver udf.
Maybe The only function of ie.udf that better compares to this WebView2 is _IECreateEmbedded()

  On 2/18/2021 at 6:28 AM, argumentum said:

....  because, the life of IE is going the way of the dodo:tv_horror:

Expand  

This is true for the IE browser, but as far as BrowserControl is concerned I think it will survive IE
for example the BrowserControl is part of the .NET "System.Windows.Controls" WebBrowser class. It is also used in the windows help. If you use the 'AutoIt Window Info' tool you can see that the BrowserControl (class: Internet Explorer_Server) is used as the help viewer...

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Posted

I think Microsoft will ultimately make WebView2 as standard system functionality and then you won't need to install any add-ons, just this functionality will work right after the first start of Windows, or at least full update.

Then not only _IECreateEMbedded() will be the only one better things in comparition to WebDriver.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 1 month later...
Posted
  On 11/26/2020 at 11:55 PM, LarsJ said:

AutoHotkey example
...

Expand  

Hi there, glad my code was able to help you get started with incorporating Webview2 into AutoIt!  I haven't updated that post in a while but I've wrapped more of the functionality since then.  Certainly not all of it because I don't have a use for a lot of the methods right now.  Awesome you were able to pick this up for the AutoIt community!

  • 9 months later...
Posted (edited)

First of all, thank you so much for your effords making WebView2 working for AutoIt.

I've tested it on Windows 7 and 10 and on both devices it works.

 

One point for Win7 is, if the script getting shutdowned, you will receive an error report from Windows (file.name doesn't work anymore).

Actually I got the same error long time ago on Win7 with other scripts which are running with DLL's. (e.g irrlicht wrapper)

3vI2dGS.png

 

Edited by xSunLighTx3
  • 1 month later...
  • 3 weeks later...
Posted

Use any IPC UDF.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Generally YES.

Not sure in case of this "WIP" UDF

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 1 month later...
Posted (edited)

Hi, cool thing you guys got going here! :D  And great work from larsJ!
Just a crazy thought.. Would it be possible to somehow bridge a native ActiveXObject, or even the whole WSH interface ( jscript ) into the WebView2?

So you straight from the Webview html/js file could do things like

var fso = new ActiveXObject("WScript.shell")

 

Not sure, but maybe this could be used:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2.addhostobjecttoscript?view=webview2-dotnet-1.0.1210.39

Edited by squadjot
Posted
  On 5/15/2022 at 8:45 PM, squadjot said:

Hi, cool thing you guys got going here! :D  And great work from larsJ!
Just a crazy thought.. Would it be possible to somehow bridge a native ActiveXObject, or even the whole WSH interface ( jscript ) into the WebView2?

So you straight from the Webview html/js file could do things like

var fso = new ActiveXObject("WScript.shell")

 

Not sure, but maybe this could be used:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2.addhostobjecttoscript?view=webview2-dotnet-1.0.1210.39

Expand  

Hi, Please put example

Posted

few days ago new version was submited:

https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/?view=webview2-1.0.1210.39

 

Maybe somebody will have a free spare time to continue work on this pre UDF.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 5/16/2022 at 8:20 PM, Parsix said:

Hi, Please put example

Expand  

Like this?

https://docs.microsoft.com/en-us/microsoft-edge/webview2/how-to/hostobject
 

What i'm requesting is the ability to instantiate native ActiveXObjects in the WebView2 browser. So we, as an example, could write to a file directly from the WebView2 with javascript. This way you would be able to do the same stuff as you would in a HTA, just with a WebView2 instead of the legacy IEBrowser

Edited by squadjot
Posted

If you want to run ActiveX web page components in MS Edge (or even Chrome), you can still run them using the fabulous IETab extension for Chrome.

Which also works in MS Edge...

 

See here for more info :

https://audministrator.wordpress.com/2018/01/08/sharepoint-online-activex-in-chrome-browser/

 

Enjoy !!

 

  • 4 weeks later...
Posted

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 5/17/2022 at 11:08 PM, Parsix said:

This udf must be convert for use Like _IECreateEmbedded for easy use

Expand  

You are welcome to help us to do this.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...