Hi guys, Im editing the Simplon Suite and I have a little problem
Im trying to change hour when wallpaper changes and when I changed the wallpaper doesnt
Actual time: 22:40
Default time to change wallpaper: 00:00
What I want: 21:00
Sorry for my english, Im not native speaker, and thanks in advance
You answered your own question, but I would offer a slightly simpler set of conditions using the 'OR' conditional operator || (see IfCondition4 below).
In addition I'd add just that the [MeasureConvertNum] measure isn't needed at all, I think. The IfConditions can be added directly to the [MeasureTime] measure and this way you can avoid a further measure.
One more question:
I want to add around 10 different wallpapers and i want to know: if I change the Update value to 100000, it will load correctly but consuming less resource from the pc, right?
And, in terms of performance, would be better one skin with a high Update value or different skins with Update-1 and refresh it or reload with windows task scheduler?
JohnSmithESP wrote:One more question:
I want to add around 10 different wallpapers and i want to know: if I change the Update value to 100000, it will load correctly but consuming less resource from the pc, right?
And, in terms of performance, would be better one skin with a high Update value or different skins with Update-1 and refresh it or reload with windows task scheduler?
You could set the skin update rate to any value up to 3600000 (1 hour in milliseconds), but I don't believe this will make much difference in saving resources; the skin checks the value of the hour on each update and only acts when one of the conditions is met, so the impact on system resources is minimal.
This code will check once an hour and change the wallpaper if the condition is met. It uses the Time measure directly as balala suggested.
You can add more conditions and times if you want 10 different wallpapers (or add a measure to select a random wallpaper).
The disadvantage of eclectic-tech's above code is that it doesn't change immediately the wallpaper when the hour changes. It takes up to one hour to change it. Taking into account what eclectic-tech said:
eclectic-tech wrote:but I don't believe this will make much difference in saving resources; the skin checks the value of the hour on each update and only acts when one of the conditions is met, so the impact on system resources is minimal.
I'd say that probably the best approach would be to use the default Update=1000. Probably won't affect too much the resources, but will change the wallpaper immediately when the hour changes.