kyriakos876 wrote: ↑November 4th, 2018, 2:17 pm
I'd be glad to contribute. At the moment I'm trying to figure out how to escape the reserved characters in XML automatically. The only thing I can think of right now, is using lua's gsub.
If'd you care to help, it would be something like:
jsmorley wrote: ↑November 4th, 2018, 3:21 pm
Just stack them up...
Note: Replace & first...
There shouldn't be that many you have to do, it's mostly just to stop any confusion with XML "reserved" characters, which are more or less & < > ' ".
Oh okay, so I can't put it all in the same... Kinda makes sense because if you replace < with < and then if you replace & with &, the previous one will become &lt;.
Yea, those are all the characters so it's fine.
ItWorks.png
It's not pretty but it works...
You do not have the required permissions to view the files attached to this post.
kyriakos876 wrote: ↑November 4th, 2018, 7:15 pm
Oh okay, so I can't put it all in the same... Kinda makes sense because if you replace < with < and then if you replace & with &, the previous one will become &lt;.
Yea, those are all the characters so it's fine.
ItWorks.png
It's not pretty but it works...
You could write a function that you call and pass the string to, rather than repeating that all those times.
jsmorley wrote: ↑November 4th, 2018, 9:22 pm
You could write a function that you call and pass the string to, rather than repeating that all those times.
Ah yes.... I will do that.
Also, I found a way to keep showing the notification in the ActionCenter without the user's innervation, but it writes a registry value. Would that be considered hacking and go against Rainmeter's "non-existing-rules" or something?
At the moment, I can give the user the option to keep the notification showing or to not keep it showing, as well as just keep it showing without them being able to choose anything...
So we could have an option like chrome has when you install it first time:
"Would you like chrome to show notifications?"
This includes them staying in the action center.
kyriakos876 wrote: ↑November 4th, 2018, 10:13 pm
Ah yes.... I will do that.
Also, I found a way to keep showing the notification in the ActionCenter without the user's innervation, but it writes a registry value. Would that be considered hacking and go against Rainmeter's "non-existing-rules" or something?
At the moment, I can give the user the option to keep the notification showing or to not keep it showing, as well as just keep it showing without them being able to choose anything...
So we could have an option like chrome has when you install it first time:
"Would you like chrome to show notifications?"
This includes them staying in the action center.
Kind of up to you, but our approach is to never write the the registry with skins. Nothing hard and fast about that, but it does break the "spirit of the law" when a user installs as "portable".
jsmorley wrote: ↑November 4th, 2018, 10:38 pm
Kind of up to you, but our approach is to never write the the registry with skins. Nothing hard and fast about that, but it does break the "spirit of the law" when a user installs as "portable".
So, no writting the registry. I'll try and find another way, though I'm pretty sure that it's either that or including the notification API toast in the Rainmeters source code, which I don't know how it would behave in anything other than Windows 10. ( But I think even then, the user will get a prompt asking whether they want Rainmeter to show notifications or not, including staying in the action center)
The obvious solution is to notify the user how to manually activate this option as you displayed in the pictures above
kyriakos876 wrote: ↑November 4th, 2018, 10:53 pm
So, no writting the registry. I'll try and find another way, though I'm pretty sure that it's either that or including the notification API toast in the Rainmeters source code, which I don't know how it would behave in anything other than Windows 10. ( But I think even then, the user will get a prompt asking whether they want Rainmeter to show notifications or not, including staying in the action center)
The obvious solution is to notify the user how to manually activate this option as you displayed in the pictures above
Yeah, that leaves things up to the user, which we prefer.