Comments (18)
It may be caused by the system environment.
from ahk2_lib.
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*
▶ 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:
from ahk2_lib.
Keep the default file tree structure, and #Include <WebView2\WebView2>
.
Or specify the corresponding version of WebView2Loader.dll.
from ahk2_lib.
Can you provide the best structure? :)
from ahk2_lib.
The above directory should not have this error.
My directory is consistent with this repository.
from ahk2_lib.
How does it know to use D:\Documents\Autohotkey\Lib to look for <Webview2\Webview2> ?
from ahk2_lib.
https://www.autohotkey.com/docs/v2/Scripts.htm#lib
This is User library.
from ahk2_lib.
But for this to work it should be enough to have:
#Include WebView2\WebView2.ahk
Where the webview2 folder looks like this:
I will create an .exe from the .ahk, and run it on a computer that dont have AHK installed.
Any suggestions?
from ahk2_lib.
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.
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.
yes
.ahk/../lib Local library
.exe/../lib Standard library
from ahk2_lib.
So I tried to do the User Library, and it found the files. Still the same error:
from ahk2_lib.
View the value of the function hresult
parameter, and throw OSError(hresult)
display error description
from ahk2_lib.
I don't understand. Sorry.
But I updated the code of WebView2.ahk.
from ahk2_lib.
What is the Edge Webview2 Runtime version?
My current version is 111.0.1661.51
from ahk2_lib.
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.
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.
What error? dll file in incorrect path?
from ahk2_lib.
Related Issues (20)
- WebSocket.ahk: Error: Malformed _JSON - unrecognized character-
- [Webview2] Add example for bypassing CORS? HOT 4
- Why aren't my headers being set? HOT 3
- [WebView2] Examples for working with cookies. HOT 3
- [WebView2.ahk] In some rare cases WebView2.create(placeholder.Hwnd) returns 0 HOT 2
- JSON库无法正确解析四个连续的反斜杠
- [WebView2] New version of library gives error when compiled HOT 2
- stuck on wait for response HOT 5
- Native 不适用 AutoHotkey.dll HOT 1
- Is the cpp JSON parser officially part of ahk_lib? HOT 2
- unsuccessful attempt to upgrade Native.ahk
- [Crypt.ahk] Is this lib unfinished? HOT 7
- WebView2 support local files? HOT 1
- After compile to Exe, LoadScript does not work. HOT 3
- Using WebView2 to open local html-page HOT 1
- RapidOcrOnnx.dll GPU support HOT 5
- Chrome still prompts one to select the chrome profile even after providing full path HOT 4
- [Audio.ahk] How to use IAudioEndpointVolume ControlChangeNotify HOT 1
- [WebView2] Invalid return type HOT 1
- [YAML.ahk] 当 key 为单引号中的(转义)单引号时,解析失败
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ahk2_lib.