![]() Going to need to set some true/false flag (ala IfCondition) that tells it to skip playing until the condition happens again, the hour changes and the seconds are zero. I'm fine with using Lua to evaluate the time and see if the hour has just changed and the seconds are zero. There is no "sleep" command in Lua, and if there was, it would be horrifically "blocking" on the entire skin. I don't believe this can be done just in Lua. In any case it really must only fire when the hour changes and the seconds are zero. That literally will have nothing to do with the "time". What if he sets the Lua measure to update once every 15 minutes, taking care to only play the hour if the minutes are 0?ĮDIT: That won't be as precise though, from a time perspective. Yincognito wrote: ↑ July 18th, 2021, 1:20 am Freaking Lua, LMAO! But he still has a mistake, since the minute FOR should not use modulus / remainder, but the "div" function, i.e. Huh! I wrote here for like a quarter of an hour, and death.crafter comes up with a 10 lines Lua script. I'll be probably busy today/tomorrow, but hopefully others will step in if necessary. If you need further help with the code, don't hesitate to ask. you might need to adjust the 1000 milliseconds intervals between rings at step 3), depending on the length in milliseonds of your bell 1 and/or bell 2. Playing a sound in any skin will stop any other currently playing sounds", so I'm not sure if you can properly play both bell 1 and bell 2 at the same time, even with the 1000 milliseconds interval between rings at step 3) if not, you can try playing them sequentially (say, the hour rings first and the minute rings second), by adding an appropriate delay at the start of the ' OnChangeAction as noted in the manual "only one sound at a time can be managed, Rainmeter-wide. OnChangeAction=Īpart from that, some things should be treated with care here: ![]() I believe you will hear the sound once, no matter the hour or minute. You have to keep in mind how the Play command works. In addition there is no way in the world you can possibly have a sound short enough to be allowed to even start to play through before that loop will instantly tell it to play again, stopping the first one. Either that, or build the "only fire once when the seconds are zero" test into the Lua. You will need to put this in a different function, and call it with an IfCondition on the Time measure, where it will only fire once when the hour and / or minute first turns. In and of itself, I believe that is going to ring on every single update. Hour, minute=tonumber(hour), tonumber(minute) Immerse yourself in the power and elegance of this Naruto-inspired design and elevate your desktop experience.Local timeMeasure=SKIN:GetMeasure('Time') Ready to bend time on your desktop? Click the button below to download the Rinnegan Clock Skin for Rainmeter. Download the Rinnegan Clock Skin for Rainmeter: ![]() Download this captivating skin and infuse your desktop with the elegance and mystique of the iconic Rinnegan eye from Naruto. Unleash the power of time on your desktop with the Rinnegan Clock Skin for Rainmeter. Adjust the color scheme, size, and transparency of the clock to seamlessly integrate it into your desktop background and create a cohesive visual experience.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |