Code Monkey home page Code Monkey logo

Comments (18)

thqby avatar thqby commented on September 14, 2024

It may be caused by the system environment.

from ahk2_lib.

akselfoley avatar akselfoley commented on September 14, 2024

I've checked on both computers I am testing.

The errors above is from the a computer running .ahk.

But I've also created an .exe to run together with \lib*

So get a new error there:
image

▶ 072: If (R := DllCall(dllPath '\CreateCoreWebView2EnvironmentWithOptions', 'str', edgeruntime, 'str', datadir || RegExReplace(A_AppData, 'Roaming$', 'Local\Microsoft\Edge\User Data'), 'ptr', options, 'ptr', EnvironmentCompletedHandler, 'uint'))

Installation status is the same for both:
image

from ahk2_lib.

thqby avatar thqby commented on September 14, 2024

Keep the default file tree structure, and #Include <WebView2\WebView2>.
Or specify the corresponding version of WebView2Loader.dll.

from ahk2_lib.

akselfoley avatar akselfoley commented on September 14, 2024

Can you provide the best structure? :)

This is my current structure:
image

image

from ahk2_lib.

thqby avatar thqby commented on September 14, 2024

The above directory should not have this error.
My directory is consistent with this repository.

image

from ahk2_lib.

akselfoley avatar akselfoley commented on September 14, 2024

How does it know to use D:\Documents\Autohotkey\Lib to look for <Webview2\Webview2> ?

from ahk2_lib.

thqby avatar thqby commented on September 14, 2024

https://www.autohotkey.com/docs/v2/Scripts.htm#lib

This is User library.

from ahk2_lib.

akselfoley avatar akselfoley commented on September 14, 2024

But for this to work it should be enough to have:

#Include WebView2\WebView2.ahk

Where the webview2 folder looks like this:
image

I will create an .exe from the .ahk, and run it on a computer that dont have AHK installed.

Any suggestions?

from ahk2_lib.

thqby avatar thqby commented on September 14, 2024

Library location priority order, Local library > User library > Standard library.

After the script is compiled, A_LineFile will change and need to be adjusted according to the actual situation.

from ahk2_lib.

akselfoley avatar akselfoley commented on September 14, 2024

I am very sorry. I am a bit stupid at the moment.

Local Library in this case is the folder WebView2 that's next to .ahk/.exe and it would work to type <WebView2\WebView2> ?

from ahk2_lib.

thqby avatar thqby commented on September 14, 2024

yes

.ahk/../lib Local library
.exe/../lib Standard library

from ahk2_lib.

akselfoley avatar akselfoley commented on September 14, 2024

So I tried to do the User Library, and it found the files. Still the same error:
image
image
image

from ahk2_lib.

thqby avatar thqby commented on September 14, 2024

View the value of the function hresult parameter, and throw OSError(hresult) display error description

from ahk2_lib.

akselfoley avatar akselfoley commented on September 14, 2024

I don't understand. Sorry.

But I updated the code of WebView2.ahk.

image

from ahk2_lib.

thqby avatar thqby commented on September 14, 2024

What is the Edge Webview2 Runtime version?

My current version is 111.0.1661.51

from ahk2_lib.

akselfoley avatar akselfoley commented on September 14, 2024

I have the same version installed.

I guess I’ll have to walk away from this and keep the current ahi that opens a url in Edge kiosk mode.

Thanks for trying :)

from ahk2_lib.

Mnjun avatar Mnjun commented on September 14, 2024

I have encountered the same problem and cannot sol
ve it. When compiling EXE, there are various error
s! May I ask if the author could kindly provide a
method for compiling into exe?

from ahk2_lib.

thqby avatar thqby commented on September 14, 2024

What error? dll file in incorrect path?

from ahk2_lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.