It is currently March 28th, 2024, 11:59 pm

[Script] Line Scroller

Discuss the use of Lua in Script measures.
User avatar
AlC
Posts: 329
Joined: June 9th, 2011, 6:46 pm

Re: [Script] Line Scroller

Post by AlC »

smurfier wrote:My code tells me how many lines are being detected. Obvious question, are there enough lines to scroll?
Yep, it show the correct lines. And there are enogh lines to scroll. (at lyrics and txt files)
Rainmeter - You are only limited by your imagination and creativity.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: [Script] Line Scroller

Post by smurfier »

I can honestly say that I have no idea what the problem is.

If you can package up your complete skin I may be able to more accurately troubleshoot the problem.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
AlC
Posts: 329
Joined: June 9th, 2011, 6:46 pm

Re: [Script] Line Scroller

Post by AlC »

Okay,

you have a PM, Hope you can find something.
Maybe there is another lua script that block something ?
Rainmeter - You are only limited by your imagination and creativity.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: [Script] Line Scroller

Post by smurfier »

Updated with a couple bug fixes.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
AlC
Posts: 329
Joined: June 9th, 2011, 6:46 pm

Re: [Script] Line Scroller

Post by AlC »

Yay, I can scroll :D

Thanks for all your efforts smurfier !
And for the optimization :)

There is only 1 thing that I notice now:
Scrolling lines and scrolling pages works
But the commands "LineNum=0" and "LineNum=#Lines-PROPERTIES.Lines" are interesting
They works but only after I click on a scroll line/page command, - Example:
I click on command "LineNum=#Lines-PROPERTIES.Lines" nothing happens, when I now click on the command Line down or up it scrolls down to the last line ??
If you want test it maybe with my skin

[LyricUPall]
Meter=String
X=170
Y=70
SolidColor=0,0,0,1
Text=Up2
FontColor=255,255,255,255
Group=Lyric
Hidden=1
LeftMouseUpAction=!CommandMeasure "Lua" "LineNum=0"

[LyricUP]
Meter=String
X=170
Y=90
SolidColor=0,0,0,1
Text=Up
FontColor=255,255,255,255
Group=Lyric
Hidden=1
LeftMouseUpAction=!CommandMeasure "Lua" "Scroll(-1)"

[LyricDOWN]
Meter=String
X=170
Y=130
SolidColor=0,0,0,1
Text=Down
FontColor=255,255,255,255
Group=Lyric
Hidden=1
LeftMouseUpAction=!CommandMeasure "Lua" "Scroll(1)"

[LyricDOWNall]
Meter=String
X=170
Y=10R
SolidColor=0,0,0,1
Text=Down2
FontColor=255,255,255,255
Group=Lyric
Hidden=1
LeftMouseUpAction=!CommandMeasure "Lua" "LineNum=#Lines-PROPERTIES.Lines"
I could solve this with a RightMouse - LeftMouse action combination.

Thanks again for the script
Rainmeter - You are only limited by your imagination and creativity.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: [Script] Line Scroller

Post by smurfier »

Could you please try these actions:

LeftMouseUpAction=!CommandMeasure "Lua" "LineNum=0 Draw()"
LeftMouseUpAction=!CommandMeasure "Lua" "LineNum=#Lines-PROPERTIES.Lines Draw()"
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
AlC
Posts: 329
Joined: June 9th, 2011, 6:46 pm

Re: [Script] Line Scroller

Post by AlC »

smurfier wrote:LeftMouseUpAction=!CommandMeasure "Lua" "LineNum=0 Draw()"
LeftMouseUpAction=!CommandMeasure "Lua" "LineNum=#Lines-PROPERTIES.Lines Draw()"
Yep, works. Thanks again :)
Rainmeter - You are only limited by your imagination and creativity.
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: [Script] Line Scroller

Post by KreAch3R »

Who will be kind enough to post a video or a .gif or a test skin, so that I can see what this is about before I actually dig into the code?

@smurfier: congrats in advance. :)
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: [Script] Line Scroller

Post by Seahorse »

The current release of Cobolt includes a working lyrics skin FROM THE EARLIER VERSION of this script. You can tinker with that. Play a song, click the musical note, read & scroll lyrics (not all songs have lyrics). I'm still having issues with the new versions not scrolling at all... :???:
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: [Script] Line Scroller

Post by smurfier »

Can you please package your current skin so that I can try and see what's going on.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .