It is currently May 9th, 2024, 9:29 am

notes - display latest entried first

Get help with creating, editing & fixing problems with skins
zakazak
Posts: 20
Joined: July 13th, 2010, 10:02 am

notes - display latest entried first

Post by zakazak »

Hi, I want to display some kind of logfile in rainmeter with this skin:

Code: Select all

[Rainmeter]
AppVersion=1003000
Update=1000
MouseActionCursor=0
MiddleMouseDownAction=!RainmeterDeactivateConfig
MouseLeaveAction=!Execute [!RainmeterHideMeter Notes1.Grabber][!RainmeterHideMeter Notes2.Grabber][!RainmeterHideMeter Notes1.Active][!RainmeterHideMeter Notes2.Active][!RainmeterRedraw]
BackgroundMode=1

[Variables]
skin.Style=Horizontal
Page=1
@Include=#ROOTCONFIGPATH#SETTINGS\Variables.inc
skin.Width=#width.Notes#
; MEASURES ====================================
[MeasureNotes1]
Measure=Plugin
Plugin=QuotePlugin.dll
PathName=#CURRENTPATH#\Notes1.txt
Separator=¶
; STYLES ======================================
@Include2=#ROOTCONFIGPATH#SETTINGS\Style#skin.Style#.inc
[sPopup]
Hidden=0
[sTextL]
Hidden=0
; METERS ======================================
[Line]
Meter=IMAGE
MeterStyle=sLine
MouseOverAction=!Execute [!RainmeterShowMeter Notes1.Grabber][!RainmeterShowMeter Notes2.Grabber][!RainmeterHideMeter Notes1.Active][!RainmeterHideMeter Notes2.Active][!RainmeterShowMeter Notes#Page#.Active][!RainmeterRedraw]
DynamicVariables=1
[Title]
Meter=STRING
MeterStyle=sSubtitle
Text=Notes
[HiddenSeperator]
Meter=IMAGE
MeterStyle=sSeperator
Y=24
Group=
Hidden=1
[Text1]
Meter=STRING
MeterStyle=sTextL
MeasureName=MeasureNotes1
H=((#h.Other#*19)+10)
Y=5r
LeftMouseUpAction=!Execute ["#CURRENTPATH#Notes1.txt"]
MouseActionCursor=1
[Gap]
Meter=IMAGE
MeterStyle=sGap
The logfile writes the newest entries at the end of the file.. rainmeter how ever shows the first lines. Is there some way to make rainmeter always show the last lines of a file?

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

Re: notes - display latest entried first

Post by jsmorley »

The Quote plugin does not have such a capability, but you can do it using a Lua script like this skin does:
zakazak
Posts: 20
Joined: July 13th, 2010, 10:02 am

Re: notes - display latest entried first

Post by zakazak »

Too bad I don't have any idea about LUA scripting :/