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) Local timeMeasure=SKIN:GetMeasure('Time')
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |