It is currently April 26th, 2024, 4:45 am

[Script] Line Scroller

Discuss the use of Lua in Script measures.
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: [Script] Line Scroller

Post by KreAch3R »

Seahorse wrote: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... :???:
Thanks Seahorse, I just tried it and understood it's use. Amazing work on the Cobolt theme, btw. Congrats.
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 »

Apologies for the slow replies I was knocked off my motorcycle doing 60 mph or so and bounced down the road, I got out of hospital late yesterday and just had a sleepless & rather uncomfortable night. The bruising ought to be epic in the next few days though... :twisted:
smurfier wrote:Can you please package your current skin so that I can try and see what's going on.
Here it is:
CoboltLyrics.rmskin
KreAch3R wrote: Thanks Seahorse, I just tried it and understood it's use. Amazing work on the Cobolt theme, btw. Congrats.
Thanks for the kind words, it is nice to receive them from other skin writers like yourself :D it's been a long incremental process, and with masses of support from Smurfier, JSMorely, Poiru, & Jobu to but name a few, apologies if I missed you but I have a headache, tinitus, feel sick and like a punch-bag Mike Tyson took his rage out on presntly. I've learnt loads, but the pleasure I get from looking at and tinkering with them is phenomenal fun and to be honest I can't believe how well they have evolved.
You do not have the required permissions to view the files attached to this post.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
jsmorley
Developer
Posts: 22630
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Script] Line Scroller

Post by jsmorley »

Glad you are ok Seahorse.
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: [Script] Line Scroller

Post by Seahorse »

Thanks, doing better than my watch...
Watch.jpg
..takes the guesswork out of the time of the accident... :rofl:
You do not have the required permissions to view the files attached to this post.
"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 »

It's working fine for me, you just have it backwards.

Code: Select all

[MeterPageUp]
Meter=BUTTON
ButtonImage=#ROOTCONFIGPATH#\Images\PrevButton.png
X=380
Y=180
LeftMouseUpAction=!CommandMeasure "MeasureLua" "Scroll(-PROPERTIES.Lines)"

[MeterScrollUp]
Meter=BUTTON
ButtonImage=#ROOTCONFIGPATH#\Images\VolUpButton.png
X=r
Y=R
LeftMouseUpAction=!CommandMeasure "MeasureLua" "Scroll(-1)"

[MeterScrollDown]
Meter=BUTTON
ButtonImage=#ROOTCONFIGPATH#\Images\VolDnButton.png
X=r
Y=R
LeftMouseUpAction=!CommandMeasure "MeasureLua" "Scroll(1)"

[MeterPageDown]
Meter=BUTTON
ButtonImage=#ROOTCONFIGPATH#\Images\NextButton.png
X=r
Y=R
LeftMouseUpAction=!CommandMeasure "MeasureLua" "Scroll(PROPERTIES.Lines)"
EDIT: I apologize, I had it backwards on the first post.
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
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: [Script] Line Scroller

Post by Seahorse »

Aha, Then I can finish off adding the new buttons... 8-)
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: [Script] Line Scroller

Post by KreAch3R »

Thank God you are ok, Seahorse. IMHO, you should lay down and watch movies or something, your rainmeter code and keyboard will still be there when you 're feeling better. :) I wish you a speedy recovery.
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
Skymil
Posts: 24
Joined: July 19th, 2011, 9:44 am
Location: France

Re: [Script] Line Scroller

Post by Skymil »

Thank you for your great script! It's very helpful for displaying lyrics.
Is it possible to have an Unicode display? Without your script, Unicode characters are displaying correctly. Using it, the Unicode characters are replaced by ?.
Could it be possible to implement a scrollbar without too much difficulties?
User avatar
jsmorley
Developer
Posts: 22630
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Script] Line Scroller

Post by jsmorley »

Skymil wrote:Thank you for your great script! It's very helpful for displaying lyrics.
Is it possible to have an Unicode display? Without your script, Unicode characters are displaying correctly. Using it, the Unicode characters are replaced by ?.
Could it be possible to implement a scrollbar without too much difficulties?
Unfortunately, Lua just doesn't handle unicode characters.
Skymil
Posts: 24
Joined: July 19th, 2011, 9:44 am
Location: France

Re: [Script] Line Scroller

Post by Skymil »

Ok thank you. It's a little disappointing.
Do you have an idea for the scrollbar (just a clue, I would like to know if it is not too much difficult)?
Edit: I succeed myself in adding a scrollbar thanks to the plugin Scroller :)