2 posts • Page 1 of 1
Hi all, quick question. Looking to make a little label that echos the contents of a text file, in this case a standalone program that places your currently playing song from a number of music players into a text file (https://github.com/dlrudie/Snip/releases/tag/v4.6.0). Of course, the tricky part is knowing when the file has been updated. Anyone have a tricky way to look for that, or is my initial thought to create a 1s timer that checks the value inside the file against the current_song variable the simplest/best way to go?
Use LuaFilesystem's 'attributes' function and return the last access time then just correlate.
Who is online
Users browsing this forum: No registered users and 8 guests