It is currently March 28th, 2024, 2:56 pm

How to display text file at a certain line number (or scroll)

Get help with installing and using Rainmeter.
Post Reply
trainwreck
Posts: 15
Joined: August 12th, 2014, 7:12 pm

How to display text file at a certain line number (or scroll)

Post by trainwreck »

I have a simple skin that displays the contents of a text file that I use to keep track of tasks and daily notes. However, sometimes the text file gets so full of notes that I can't see it all.

1. Is it possible to create a second meter that displays the same text file, but does it at a specific line number? For instance, if the text file is 200 lines but I can only fit 100 (non-clipped) lines on my laptop screen, I'd like the second meter to display the same notes file but from line 101-200.

2. If not 1, is it possible to scroll the contents of the text file.

Here is my meter. I appreciate any help I can get !!!

Code: Select all

[Rainmeter]
Update=1000
BackgroundMode=1
AccurateText=1

[Variables]
NotesPath=C:\Users\Me\Documents\Various Files\Notes\notes 5.txt
NotesFolder=C:\Users\Me\Documents\Various Files\Notes\
fontName=Consolas
textSize=9
colorText=255,255,255,255
noteTitle="Random Title"

[measureNotes]
Measure=Plugin
Plugin=QuotePlugin
PathName="#Notespath#"
Separator=¶
OnChangeAction=[!UpdateMeter "meterNotes"][!Redraw]

[styleTitle]
StringAlign=CENTER
StringCase=UPPER
StringStyle=BOLD
SolidColor=0,0,0,1
FontColor=#colorText#
FontFace=#fontName#
FontSize=12
AntiAlias=1
ClipString=1

[styleNotes]
StringAlign=LEFT
StringCase=NONE
SolidColor=0,0,0,1
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
X=400
Y=12
W=800
H=18
Text=#noteTitle#

[meterNotes]
Meter=String
MeterStyle=styleNotes
X=25
Y=35
W=800
H=900
Text="[measureNotes]"
ClipString=1
LeftMouseUpAction=["#Notespath#"]
UpdateDivider=-1
DynamicVariables=1
ClipString=1

Post Reply