[Script] Lua Marquee
Posted: July 23rd, 2011, 10:51 pm
I have written a Lua script that will marquee a single line of text.
*** Rainmeter 2.5 or higher required ***
Inputs:
Notes
My choice of font is Monospace Typewriter.
Changelog:
*** Rainmeter 2.5 or higher required ***
Inputs:
- Text*
- Predefined Text.
- MeasureName
- The name of a measure.
- Variable
- The name of a variable.
- Width*
- The width of the marquee. This number represents characters, not pixels.
Defaults to 10
- The width of the marquee. This number represents characters, not pixels.
- Delimiter*
- The delimiter between items. Quotes or Apostrophes must be used around spaces, and escaped with / if you want them included in the delimiter. Only used when using multiple measures.
Defaults to ' '
- The delimiter between items. Quotes or Apostrophes must be used around spaces, and escaped with / if you want them included in the delimiter. Only used when using multiple measures.
- ForceScroll*
- When set to 1, forces a string that is shorter than Width to scroll.
- Pause
- Used to set the default state of the Pause variable. 0 for paused, 1 for scrolling.
- Position
- When set to LEFT, the string starts on the left side of the marquee.
Notes
- To use multiple inputs of the same type, simply use a pipe delimiter between names. This does no apply to the Text input.
- Example: MeasureName=Measure1|OtherMeasure
- More than one type of input may be used and are displayed in the following order:
- Measures, Variables, Text.
- If no input is specified or if no information is retireved, "Input Error!" is displayed.
- If the length of the text is less than the specified width, the text will not scroll.
- Reset the Timer
- !CommandMeasure "MeasureLua" "Timer=0;"
- Pause
- !CommandMeasure "MeasureLua" "Pause=0;"
- UnPause
- !CommandMeasure "MeasureLua" "Pause=1;"
- Toggle Pause
- !CommandMeasure "MeasureLua" "Pause=1-Pause"
- Have the text scroll only on mouseover.
- On the Marquee measure set Pause=0 and Position=Left.
- On the meter in question set:
MouseOverAction=!CommandMeasure Lua Pause=1
MouseLeaveAction=!CommandMeasure Lua Pause,Timer=0,0
My choice of font is Monospace Typewriter.
Changelog: