Code: Select all
[Rainmeter]
Update=20
DefaultUpdateDivider=50
AccurateText=1
DynamicWindowSize=1
[Metadata]
Name=NewsFeed Reader (Marquee)
Author=Youkai1977
Version=03-21.V1 <> 13.02.2021
Information=This Meter is a Part of M.A.R.S.- 2021 Skin Package
License=Creative Commons Attribution-Non-Commercial-Share Alike 4.0
;==================================================
;=== VARIABLES & STYLES ===========================
;==================================================
[Variables]
@include=newsfeeddata.inc
;==============================================================
;=== VOICE OUTPUT =============================================
;==============================================================
;=== ==
;=== FOR MORE INFO TO SPEECH-PLUGIN ==
;=== https://forum.rainmeter.net/viewtopic.php?f=127&t=31161 ==
;=== ==
;==============================================================
[VoiceOutput]
Measure=PLUGIN
Plugin=Speech
Name=#VoiceName#
;Index=#IndexName#
;Gender=#VoiceGender#
Debug=#DebugModus#
Volume=#VoiceVolume#
Rate=#SpeechRate#
UpdateDivider=-1
;==================================================
;=== MEASURES NEWS FEED & MARQUEE =================
;==================================================
;=== MEASURES NEWS FEED ===========================
[mRSS]
Measure=WEBPARSER
URL=#RSSUrl#
RegExp=(?siU)<description>(.*)</description>.*<link.*>(.*)</link>.*<item.*<title.*>(.*)</title>.*<link.*>(.*)</link>(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
UpdateRate=60000
StringIndex=1
Debug=1
OnChangeAction=[!EnableMeasureGroup CHILDS][!ShowMeter HEADNAME][!UpdateMeterGroup FEED][!Redraw]
FinishAction=[!CommandMeasure VoiceOutput "#NewsUpdSpeech#"][!SetOption HEADNAME FontColor "#Color4##Alpha1#"][!UpdateMeter HEADNAME][!Redraw][!Delay 5000][!ShowMeter NewsFeed][!EnableMeasure mXPos][!UpdateMeasure mXPos][!SetOption HEADNAME FontColor "#Color3##Alpha1#"][!UpdateMeter HEADNAME][!Redraw]
UpdateDivider=1
[mRSSItem1]
Measure=WEBPARSER
URL=[mRSS]
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
StringIndex=3
Disabled=1
Group=CHILDS
[mRSSItem2]
Measure=WEBPARSER
URL=[mRSS]
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
StringIndex=5
Disabled=1
Group=CHILDS
[mRSSItem3]
Measure=WEBPARSER
URL=[mRSS]
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
StringIndex=7
Disabled=1
Group=CHILDS
[mRSSItem4]
Measure=WEBPARSER
URL=[mRSS]
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
StringIndex=9
Disabled=1
Group=CHILDS
[mRSSItem5]
Measure=WEBPARSER
URL=[mRSS]
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
StringIndex=11
Disabled=1
Group=CHILDS
;=== MEASURE MARQUEE FUNCTION =====================
[mXPos]
Measure=LOOP
StartValue=#StartPos#
EndValue=-[NewsFeed:W]
Increment=#Direction#
LoopCount=0
DynamicVariables=1
UpdateDivider=1
Disabled=1
;##################################################
;##################################################
;##################################################
;##################################################
;##################################################
;##################################################
;==================================================
;=== HEAD NEWS FEED READER (Side Lines) ===========
;==================================================
[LAYERxPosText]
Meter=STRING
MeterStyle=StLAYER
X=0
Y=0
[HEADLINES]
Meter=SHAPE
X=0
Y=20
Shape=Rectangle 0,0,8,8 | Extend ModifiersS1
Shape2=Line 8,4,26,4 | Extend ModifiersL1
Shape3=Rectangle 26,0,8,8 | Extend ModifiersS1
;-----
Shape4=Rectangle 0,16,8,8 | Extend ModifiersS2
Shape5=Line 8,20,26,20 | Extend ModifiersL2
Shape6=Rectangle 26,16,8,8 | Extend ModifiersS2
;-----
Shape7=Rectangle ([HEADNAME:W] + 48),0,8,8 | Extend ModifiersS1
Shape8=Rectangle ([HEADNAME:W] + 48),0,8,8 | Extend ModifiersS1
Shape9=Rectangle ([HEADNAME:W] + 48),16,8,8 | Extend ModifiersS2
Shape10=Rectangle ([HEADNAME:W] + 48),16,8,8 | Extend ModifiersS2
;-----
Shape11=Rectangle 872,0,8,8 | Extend ModifiersS1
Shape12=Line 854,4,872,4 | Extend ModifiersL1
Shape13=Rectangle 846,0,8,8 | Extend ModifiersS1
;-----
Shape14=Rectangle 872,16,8,8 | Extend ModifiersS2
Shape15=Line 854,20,872,20 | Extend ModifiersL2
Shape16=Rectangle 846,16,8,8 | Extend ModifiersS2
ModifiersS1=StrokeWidth 0 | Fill Color #Color3##Alpha2#
ModifiersL1=StrokeWidth 2 | StrokeColor #Color3##Alpha2#
ModifiersS2=StrokeWidth 0 | Fill Color #Color3##Alpha1#
ModifiersL2=StrokeWidth 2 | StrokeColor #Color3##Alpha1#
DynamicVariables=1
UpdateDivider=-1
Group=FEED
[HEADNAME]
Meter=STRING
MeterStyle=StHEAD
X=41
Y=r
LeftMouseUpAction=[#vURL#]
;==================================================
;=== MARQUEE NEWS FEED READER =====================
;==================================================
;=== CONTAINER NEWS FEED ==========================
[CONTAINER_NWF]
Meter=SHAPE
X=0
Y=r
Shape=Line ([HEADNAME:W] + 63),0,839,0 | StrokeWidth 47 | StrokeColor #Color0##Alpha1#
DynamicVariables=1
UpdateDivider=-1
LeftMouseDoubleClickAction=[#vURL#]
Group=FEED
;=== MARQUEE NEWS FEED ============================
[NewsFeed]
Meter=STRING
MeterStyle=StNEWS
X=[mXPos]r
Y=r
Code: Select all
[Variables]
;********************************************************************************************************************************************************
;********************************************************************************************************************************************************
;*** ******
;*** !!!!!!!!!!!!!!!!!! DON`T CHANGE ANYTHING IN THIS FILE !!!!!!!!!!!!!!!!!!!!!!! Unless you know what you are doing :-) !!!!!!!!!!!!!!!!!! ******
;*** !!!!!!!!!!!!!!!!!! DON`T CHANGE ANYTHING IN THIS FILE !!!!!!!!!!!!!!!!!!!!!!! Unless you know what you are doing :-) !!!!!!!!!!!!!!!!!! ******
;*** !!!!!!!!!!!!!!!!!! DON`T CHANGE ANYTHING IN THIS FILE !!!!!!!!!!!!!!!!!!!!!!! Unless you know what you are doing :-) !!!!!!!!!!!!!!!!!! ******
;*** !!!!!!!!!!!!!!!!!! DON`T CHANGE ANYTHING IN THIS FILE !!!!!!!!!!!!!!!!!!!!!!! Unless you know what you are doing :-) !!!!!!!!!!!!!!!!!! ******
;*** ******
;********************************************************************************************************************************************************
;********************************************************************************************************************************************************
;==================================================
;=== VARIABLES FONTFACE - SIZE - COLORS ===========
;==================================================
FontFace=SQUARE721 BT
FS1=10
FS2=8
Alpha0=1
Alpha1=255
Alpha2=70
Color0=0,0,0,
Color1=160,246,253,
Color2=48,180,200,
Color3=97,240,255,
Color4=253,193,0,
Color5=255,255,255
Color6=255,104,67,
;==================================================
;=== VARIABLES SPEECH PLUGIN (NewsFeed) ===========
;==================================================
VoiceName=Microsoft Hedda Desktop
;IndexName=
;VoiceGender=
DebugModus=0
VoiceVolume=100
SpeedRate=-2
NewsUpdSpeech=News Feed aktualisiert
;==================================================
;=== VARIABLES NEWS FEED READER ===================
;==================================================
Direction=-1
StartPos=850
RSSUrl=https://news.google.com/rss?pz=1&cf=all&hl=de&gl=DE&ceid=DE:de
vURL=http://news.google.de/
;==================================================
;=== STYLE NEWS FEED HEAD (Side Line) =============
;==================================================
[StLAYER]
Padding=0,-3,-1,-3
SolidColor=#Color0##Alpha0#
FontColor=#Color1##Alpha1#
FontFace=#FontFace#
FontSize=#FS2#
StringCase=UPPER
AntiAlias=1
Text=LAYER NFR POS: [NewsFeed:Y] [\x00B7] [mXPos]
InlineSetting=Color | #Color6##Alpha1#
InlinePattern=[NewsFeed:Y]
InlineSetting2=Color | #Color4##Alpha1#
InlinePattern2=[\x00B7](.*)
DynamicVariables=1
UpdateDivider=1
Group=FEED
[StHEAD]
Padding=0,4,-1,5
SolidColor=#Color0##Alpha0#
FontColor=#Color3##Alpha1#
FontFace=#FontFace#
FontSize=#FS1#
StringCase=UPPER
AntiAlias=1
Text=[mRSS]
ClipString=2
ClipStringW=105
ClipStringH=15
DynamicVariables=1
UpdateDivider=-1
Group=FEED
;==================================================
;=== STLYE NEWS FEED ==============================
;==================================================
[StNEWS]
Padding=0,4,-1,5
SolidColor=#Color0##Alpha0#
FontColor=#Color5##Alpha1#
FontFace=#FontFace#
FontSize=#FS1#
StringCase=UPPER
AntiAlias=1
Text=[\x2022][\x2022][\x2022] [mRSSItem1] [\x2022][\x2022][\x2022] [mRSSItem2] [\x2022][\x2022][\x2022] [mRSSItem3] [\x2022][\x2022][\x2022] [mRSSItem4] [\x2022][\x2022][\x2022] [mRSSItem5] [\x2022][\x2022][\x2022]
InlineSetting=Color | #Color1##Alpha1#
InlinePattern=(?i)[mRSSItem1] | (?i)[mRSSItem3] | (?i)[mRSSItem5]
InlineSetting2=Color | #Color2##Alpha1#
InlinePattern2=(?i)[mRSSItem2] | (?i)[mRSSItem4]
DynamicVariables=1
UpdateDivider=1
Hidden=1
Container=CONTAINER_NWF
Group=FEED