sl23 wrote:Actually I used @Resources\Marquee.lua instead of #@#Marquee.lua, now I switched to the latter, it works now I've rearranged the code a little. I can't get the font style to work though?
Oh?! Now I'm confused! Why not StringStyle? That works elsewhere.
Yay! Sorted, thanks for your help smurfier
Re: [Script] Lua Marquee
Posted: May 27th, 2013, 6:26 pm
by smurfier
sl23 wrote:Oh?! Now I'm confused! Why not StringStyle? That works elsewhere.
Yay! Sorted, thanks for your help smurfier
Because StringStyle is exclusively used for StringStyle=Bold and the like.
What you are doing is using a MeterStyle.
Re: [Script] Lua Marquee
Posted: May 27th, 2013, 7:00 pm
by sl23
Er... Ok! How come this works elsewhere though? Does it depend where it's used I suppose?
Re: [Script] Lua Marquee
Posted: May 27th, 2013, 8:50 pm
by smurfier
sl23 wrote:Er... Ok! How come this works elsewhere though? Does it depend where it's used I suppose?
It shouldn't work anywhere else. StringStyle is only for use on strings and applies Bold, Italic, or BoldItalic to a string. MeterStyle applies to all Meters and adds the options from the defined styles to that meter. A MeterStyle can be a section containing options or be another meter itself.
Re: [Script] Lua Marquee
Posted: May 28th, 2013, 3:42 pm
by sl23
My mistake I saw StringStyle and mistook it for the MeterStyle!!!
Re: [Script] Lua Marquee
Posted: June 1st, 2013, 3:29 pm
by sl23
The Marquee seems to work but have minor problems. The skin is laid out like this:
Artist - Never seen scrolling yet
Track - Always scrolls if longer than visible size
Album - sometimes scrolls, sometimes not
I've set the length to 20 characters. Basically I have 3 marquees one for each and they're all the same so how come Artist doesn't scroll and Album sometimes scrolls but not always, both should ALWAYS scroll when more than 20 characters shouldn't they?
EDIT: Think I've solved this, it was due to 20 chars being longer than W=120!
I also can't get the scroll on MouseOver to work:
MouseOverAction=!CommandMeasure Lua Pause=1
MouseLeaveAction=!CommandMeasure Lua Pause,Timer=0,0
I copied this from the first post. As I have used these commands in the [Rainmeter] section, and I'd prefer a general MouseOver command, I put them in there with the other stuff. Am I doing something wrong?
I changed the Pause=0 and Position=Left in the LUA.
EDIT: I've figured out the cause. Basically as I'd renamed MeterLua and now have 3 of these, I needed 3 !CommandMeasure mLua1(and 2 and 3). As detailed below:
One other thing, is it possible to make the Marquee work slightly differently. Instead of showing AlbumName then waiting til it scrolls to the last letter before reappearing, I'd like it work something like this:
AlbumName - AlbumName - AlbumName - ....
So the AlbumName is continually shown without waiting for it to finish before it starts again.
EDIT: As the MouseLeaveAction resets the Marquee, this isn't needed now as on MouseOver it scrolls from the start. I managed to sort these problems out but left this post here to help others
Thanks for your help
Scott
Re: [Script] Lua Marquee
Posted: June 9th, 2013, 3:22 pm
by Seahorse
Version 6.2 is rounding numbers, eg if a calc returns 15.8 it displays 16. How do I change this behaviour?
Further to that, the figure above is RAM, and Autoscale does not seem to be supported so I am using a calc: