4) step wrote that a newer version is installed2) try to uninstall the existing Edge and WebView normally from one of these locations:
- Control Panel > Programs And Features
- Start > Settings > Apps
3) delete any "Edge..." and "Temp" folders from the "C:\Program Files (x86)\Microsoft" folder (skip files that cannot be deleted, if any)
It is currently October 13th, 2024, 12:26 am
PluginWebView - Make skin using web technology
-
- Posts: 167
- Joined: March 15th, 2024, 7:30 pm
Re: PluginWebView - Make skin using web technology
-
- Rainmeter Sage
- Posts: 8441
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: PluginWebView - Make skin using web technology
The URL option in a WebParser measure can be either a local or online webpage address, or another WebParser measure. Setting it to the [Data] measure will not work, because [Data] is a String measure. So, the right way to approach this is, like I said, through the Substitute option of [Data] itself (assuming a RegExpSubstitute=1 line is present in [Data] as well, so that regular expressions can be used in the Substitute option). Understanding what symbols should be used in regular expression (i.e. regex) patterns depends on you understanding how regular expressions work. I know, looks difficult, but it's not that hard - it's like math, but for strings.Kotofanchik wrote: ↑April 1st, 2024, 8:36 pm I can't do it. I don't get anything. I see the information in the skin and see that it is there. But she doesn't go any further. I can't pass this string to another measure. Do not understand why. Which quotation marks and brackets should be used. I again go through random options, try to do what I find in other skins and nothing.
Yes, I commented on regexpsubstitute and substitute and tried to do for exampleBut nothing works out.Code: Select all
[Data1] Measure =Plugin Plugin=WebParser Url=[Data] RegExp=.....
Step 4) is referring to the Edge installation. Step 2), 3), 5) and 6) also refer to the WebView uninstallation process. I think you're confusing the two.
To be more specific, you couldn't get that error when trying to install Edge, because you can perform step 2) for Edge, just not for latest WebView.
-
- Posts: 167
- Joined: March 15th, 2024, 7:30 pm
Re: PluginWebView - Make skin using web technology
Making the entire skin using regexpsubstitute is unrealistic. It is possible, but very labor intensive. Maybe you can save the entire Data string to a file and rewrite the entire file every time the information is updated? I would then direct a regexp to the file on itYincognito wrote: ↑April 1st, 2024, 8:54 pm The URL option in a WebParser measure can be either a local or online webpage address, or another WebParser measure. Setting it to the [Data] measure will not work, because [Data] is a String measure. So, the right way to approach this is, like I said, through the Substitute option of [Data] itself (assuming a RegExpSubstitute=1 line is present in [Data] as well, so that regular expressions can be used in the Substitute option). Understanding what symbols should be used in regular expression (i.e. regex) patterns depends on you understanding how regular expressions work. I know, looks difficult, but it's not that hard - it's like math, but for strings.
Step 4) is referring to the Edge installation. Step 2), 3), 5) and 6) also refer to the WebView uninstallation process. I think you're confusing the two.
To be more specific, you couldn't get that error when trying to install Edge, because you can perform step 2) for Edge, just not for latest WebView.
-
- Posts: 167
- Joined: March 15th, 2024, 7:30 pm
Re: PluginWebView - Make skin using web technology
My version of Windows has a standard ability to remove webwiew2. But it is not possible to remove Edge. As far as I know, it is possible to remove Edge in the European Union, but I do not have this option.because you can perform step 2) for Edge, just not for latest WebView.
-
- Rainmeter Sage
- Posts: 8441
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: PluginWebView - Make skin using web technology
Oh, I see. Well, that probably explains it, indeed.Kotofanchik wrote: ↑April 1st, 2024, 9:24 pm My version of Windows has a standard ability to remove webwiew2. But it is not possible to remove Edge. As far as I know, it is possible to remove Edge in the European Union, but I do not have this option.
I get what you're saying, but there are 3 problems with your proposal:Kotofanchik wrote: ↑April 1st, 2024, 9:19 pm Making the entire skin using regexpsubstitute is unrealistic. It is possible, but very labor intensive. Maybe you can save the entire Data string to a file and rewrite the entire file every time the information is updated? I would then direct a regexp to the file on it
- for security reasons, Javascript can't really write to local files:
https://stackoverflow.com/questions/21012580/is-it-possible-to-write-data-to-file-using-only-javascript
- for the same reason, Rainmeter has a limited such ability too:
https://docs.rainmeter.net/manual/bangs/#WriteKeyValue
- even if it's done, you'd still need regex patterns in the RegExp:
https://docs.rainmeter.net/manual/measures/webparser/#Local
https://docs.rainmeter.net/manual/measures/webparser/#RegExp
So, basically, you'd end up doing more or less the same thing, except in a RegExp and not a Substitute. Same effort, if you ask me.
Plus, this would be exactly what a single WebParser measure with its URL set to the desired address does (i.e. you wouldn't need WebView or Javascript at all) - not to mention WebParser also has the ability to save the response to a local file via its Download=1 and DownloadFile=<filenamehere> options. Obviously, this would probably not solve the Cloudflare issue as you already suspect (though you didn't mention if the WebView method here solves it either, by trying that method on your weather site instead of google.com), but since you asked...
Here is how to do it with just 2 WebParser measures (copied from another advice I gave, no need for the local Page.html or a WebView measure using it):
Here is how to do it with a WebView and a WebParser (a bit redundant given the first variant, and the [SkinFolder]\DownloadFile\Data.txt file must already exist in this case for the !WriteKeyValue from Javascript to work):
Both of the above should get you the entire contents of the Data.txt file in the Data measure via its RegExp and StringIndex options every 10 minutes (through the UpdateRate and UpdateDivider options which are in seconds because Update=1000 milliseconds), but of course you can get rid of the StringIndex one in this measure and just add more WebParser child measures to get specific parts of the file contents separately.
That's all there is to it, really. Next, checking the manual and its examples a bit as well as how regex patterns are built and adjusting things to your preference should move you forward towards achieving your goal.
-
- Posts: 167
- Joined: March 15th, 2024, 7:30 pm
Re: PluginWebView - Make skin using web technology
Thanks, I'll look into it.
I'm interested in writing to a file for two and a half reasons. It seems to me that webparser is more convenient to work with than regexpsubstitute, maybe this is my personal understanding. Secondly, I want to work with existing skins with minimal changes. simply by redirecting them to a local file instead of a URL. Well, thirdly, it may be possible to simplify checking the skin without updating the data from the site every time.
I'm interested in writing to a file for two and a half reasons. It seems to me that webparser is more convenient to work with than regexpsubstitute, maybe this is my personal understanding. Secondly, I want to work with existing skins with minimal changes. simply by redirecting them to a local file instead of a URL. Well, thirdly, it may be possible to simplify checking the skin without updating the data from the site every time.
-
- Rainmeter Sage
- Posts: 8441
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: PluginWebView - Make skin using web technology
Sure thing. Yeah, most folks prefer RegExp in a WebParser measure, rather than a (regex) Substitute in a String measure, for the same reasons. It is indeed more convenient and clear like that, I was just pointing out that you'd still have to deal with regular expression patterns either way, that's all. Saving the response to a local file first can workaround some occasional issues with parsing the URL address response directly. Hopefully some of these will work for your case, though I'd be cautious and not getting my hopes too high on that one.Kotofanchik wrote: ↑April 2nd, 2024, 1:24 pm Thanks, I'll look into it.
I'm interested in writing to a file for two and a half reasons. It seems to me that webparser is more convenient to work with than regexpsubstitute, maybe this is my personal understanding. Secondly, I want to work with existing skins with minimal changes. simply by redirecting them to a local file instead of a URL. Well, thirdly, it may be possible to simplify checking the skin without updating the data from the site every time.
-
- Posts: 167
- Joined: March 15th, 2024, 7:30 pm
Re: PluginWebView - Make skin using web technology
Your help is invaluable. And it gives me the strength to help other people in matters in which I am competent again and again.
-
- Posts: 167
- Joined: March 15th, 2024, 7:30 pm
Re: PluginWebView - Make skin using web technology
Something isn't working. Rainmeter\Skins\test3\DownloadFile\Data.txt file is empty
It also started causing the entire Rainmeter to freeze. I didn’t do anything, I see it froze, now it constantly freezes with test3
!WriteKeyValue: File not found: C:\Users\RmicroN\Documents\Rainmeter\Skins\test3\ + f +
It also started causing the entire Rainmeter to freeze. I didn’t do anything, I see it froze, now it constantly freezes with test3
!WriteKeyValue: File not found: C:\Users\RmicroN\Documents\Rainmeter\Skins\test3\ + f +
You do not have the required permissions to view the files attached to this post.
-
- Posts: 167
- Joined: March 15th, 2024, 7:30 pm
Re: PluginWebView - Make skin using web technology
I think about everything. why is api.allorigins.win here? I don’t understand the capabilities of Webwiev, but isn’t it easier to save a file using its ability to save to a file?
Maybe it’s simpler as I originally suggested:
Webwiev opens the specified site and receives a command to save its contents or overwrite it and that's it. and do it at intervals. Or is this impossible?
Well, and by the way, once again why webparser is not suitable. He cannot get to the desired site, but webwiev can.
Perhaps the option with api.allorigins.win will also work. But it hasn't been possible to check yet. Now the site works without human verification and I don’t know how the different ways will work.
Maybe it’s simpler as I originally suggested:
Webwiev opens the specified site and receives a command to save its contents or overwrite it and that's it. and do it at intervals. Or is this impossible?
Well, and by the way, once again why webparser is not suitable. He cannot get to the desired site, but webwiev can.
Perhaps the option with api.allorigins.win will also work. But it hasn't been possible to check yet. Now the site works without human verification and I don’t know how the different ways will work.