It is currently April 24th, 2024, 1:19 pm

Small Idea About Clicking Through Lines Of Quote PlugIn Txt File. [solved with not quote but webparser]

Get help with creating, editing & fixing problems with skins
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Small Idea About Clicking Through Lines Of Quote PlugIn Txt File. [solved with not quote but webparser]

Post by CodeCode »

Hello,
I have this Idea to use each short line of the quote plugin text file. It is to click to each line in a short text file, where each line is of the tracks of music for MP3 files that cannot be separated due to the mix being continuous.

I am not sure how to make that possible.

TBH, I haven't tries since I have not really seen this before - or do not remember it since so many ideas come through these forums.

Any help or suggestions appreciated.

Code: Select all

[MeasurePlayList]
Measure=Plugin
Plugin=QuotePlugin
PathName=#CurrentList#
Disabled=0
Separator=¶
Subfolders=0
FileFilter=*.txt
A bit more just came to mind. That is to be able to switch this option on or off, depending on the user choice. Also there might be a need to check the folder the MP3 is in so that the option does not go haywire or something.

:confused:
Last edited by CodeCode on March 5th, 2023, 9:52 am, edited 1 time in total.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Small Idea About Clicking Through Lines Of Quote PlugIn Txt File.

Post by CodeCode »

OK I have the followingh Code.
I am not able to get the Textfile using "File" in the Measure MeasurePath

What AM I doing wrong?

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1


[Variables]



[MeasureTrack]
Measure=NowPlaying
PlayerName=CAD
PlayerType=Title

[MeasurePath]
Measure=NowPlaying
PlayerType=File
DynamicVariables=1

[MeasureQuote]
Measure=Plugin
Plugin=QuotePlugin
PathName=[MeasurePath]
Separator=¶
FileFilter=.txt
DynamicVariables=1

[MeterText]
Meter=String
MeasureName=MeasureTrack
X=0
Y=0
SolidColor=200,0,0,255
FontFace=tele-marines
FontSize=23
FontColor=220,220,220,225
Text=%1
Antialias=1
DynamicVariables=1
Hidden=0
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Small Idea About Clicking Through Lines Of Quote PlugIn Txt File.

Post by eclectic-tech »

Add PlayerName=CAD to [MeasurePath].
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Small Idea About Clicking Through Lines Of Quote PlugIn Txt File.

Post by CodeCode »

eclectic-tech wrote: February 27th, 2023, 12:46 pm Add PlayerName=CAD to [MeasurePath].
Ok, Cool.

I Got this Far during working on this - the main problem is the Quote Plugin seems only able to be random.

I am hoping for a way to click through lines of a text file without showing the text file.

Here are all of the measures and meters as they are now: The text file has to be named "Tracks.txt."

;----------------- ONE TRACK THING --

Code: Select all

[MeasureTitle]
Measure=NowPlaying
PlayerName=CAD
PlayerType=Title

[MeasurePath]
Measure=NowPlaying
Playername=[MeasureTitle]
PlayerType=File
RegExpSubstitute=1
Substitute="^(.*)\\.*$":"\1"
DynamicVariables=1

;------------------------ QUOTE ----

[MeasureQuote]
Measure=Plugin
Plugin=QuotePlugin
Paused=1
PathName=[MeasurePath]/Tracks.txt
UpdateDivider=4
FileFilter=*.txt
DynamicVariables=1

[MeterTrack2]
Meter=String
MeasureName=MeasureTrack
Text=%1
W=165
H=75
X=105
Y=18r
StringAlign=Left
ClipString=2
FontColor=#TotalbColor#
FontSize=11
Antialias=1
DynamicVariables=1
Group=ModeA
Hidden=0

[OneTrack]
Meter=String
MeasureName=MeasureQuote
Text=%1
W=165
H=75
X=105
Y=r
StringAlign=Left
ClipString=2
FontColor=#CustomColor#
FontSize=11
Antialias=1
DynamicVariables=1
Group=ModeA
Hidden=0
MouseOverAction=[!SetOption "Clicky5" "Hidden" "0"][!SetOption "ButtonFunctionText" "Text" "One Trackers"][!Update]
MouseLeaveAction=[!SetOption "MeterTrack" "Text" "" ][!SetOption "ButtonFunctionText" "Text" ""][!SetOption "MeterText" "Text" ""][!SetOption "Clicky5" "Hidden" "1"][!Update]
LeftMouseDownAction=[!SetOption "MeterTrack2" "Text" ""][!UnPauseMeasure "MeasureQuote"][!Delay 400][!SetOption "OneTrack" "Text" "[MeasureQuote]"][!Delay 400][!PauseMeasure "MeasureQuote"][!Update]
DynamicVariables=1
Hidden=0
Group=ModeA
I hope i didnt miss anything for this example.

EDIT: ADDED txt file for reference
Tracks.txt
You do not have the required permissions to view the files attached to this post.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Small Idea About Clicking Through Lines Of Quote PlugIn Txt File.

Post by CodeCode »

Edited Code - several things fixed for better readability.

Code: Select all

[ButtonTracksG]
Meter=Shape
Shape=Rectangle 111,275,34,34,17 | StrokeWidth 0 | Fill LinearGradient MyGradient1
MyGradient1=270 | 255,240,207,255 ; 0,0 | 240,210,85,255 ; 0.05 | 60,60,60,255 ; 0.25 | 255,240,207,255 ; 0.75 | 60,60,60,255 ; 0.9 | 215,190,90,255 ; 0.99
DynamicVariables=1
Group=ModeA
Hidden=0

[ButtonTracksF]
Meter=Shape
Shape=Rectangle 114,278,28,28,14 | StrokeWidth 0 | Fill Color 10,10,10,255
MouseOverAction=[!SetOption "Clicky5" "Hidden" "0"][!SetOption "ButtonFunctionText" "Text" "One Trackers"][!Update]
MouseLeaveAction=[!SetOption "ButtonFunctionText" "Text" ""][!SetOption "Clicky5" "Hidden" "1"][!Update]
LeftMouseUpAction=[!SetOption MeterTrack Hidden "1"][!UnPauseMeasure "MeasureQuote"][!SetOption "OneTrack" "Text" "[MeasureQuote]"][!Delay 300][!PauseMeasure "MeasureQuote"][!Update]
RIghtMouseUpAction=[!Refresh]
DynamicVariables=1
Hidden=0
Group=ModeA

[ClickyTracks]
Meter=Shape
Shape=Rectangle 114,278,28,28,14 | Fill Color 0,0,0,1 | StrokeWidth 1 | Stroke Color 177,133,78,185
Group=buttons
Hidden=1
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Small Idea About Clicking Through Lines Of Quote PlugIn Txt File.

Post by eclectic-tech »

A bit hard to follow without the entire package...

But a few thoughts would be:
Use Webparser instead of the Quote plugin to read the contents of 'Tracks.txt' and have each line be a StringIndex you can reference; this removes the randomness of the Quote plugin.
Add SolidColor=0,0,0,1 on any string meter with mouse actions.

Not sure what else to suggest since I am missing most of your meters, measures, and 'Tracks.txt' which you reference in these snippets. :???:

A full package might help, but may be too much :D ...
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Small Idea About Clicking Through Lines Of Quote PlugIn Txt File.

Post by eclectic-tech »

To get the info from Webparser, something like this should work.

Code: Select all

[Variables]
Get=(?(?=.*\r)(.*)\r)

[MeasureWebParser]
Measure=WebParser
Flags=Resync | NoCookies
UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
URL="file:///#CurrentPath#Tracks.txt"
RegExp=(?siU)^#Get##Get##Get##Get##Get##Get##Get##Get##Get#
LogSubStringErrors=0
; Documentation: https://docs.rainmeter.net/manual-beta/measures/webparser/

[MeasureWebParserChild1]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=1

[MeasureWebParserChild2]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=2

[MeasureWebParserChild3]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=3

[MeasureWebParserChild4]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=4

[MeasureWebParserChild5]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=5

[MeasureWebParserChild6]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=6

[MeasureWebParserChild7]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=7

[MeasureWebParserChild8]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=8

[MeasureWebParserChild9]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=9

[MeasureWebParserChild10]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=10

parsedtracks.png
Notes:
I saved the 'Tracks.txt file in the same folder as this skin to test; you may have to change the path in 'URL+...' of the Webparser to wherever your file is located.

The #Get# variable uses lookahead to determine if there is another line \r so make sure the last track is followed by a blank line. This also fails gracefully if there are more or less tracks than the number I try to capture with #Get#'s.

The 'Tracks.txt' should be encoded as ANSI.

The info could be separated into more StringIndexes if you want separate time and title.
You do not have the required permissions to view the files attached to this post.
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Small Idea About Clicking Through Lines Of Quote PlugIn Txt File.

Post by CodeCode »

That looks great, But I am unsure how to cycle through the tracks in real time/

Is that possible with the webparser measures?

Thank for everything so far.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Small Idea About Clicking Through Lines Of Quote PlugIn Txt File.

Post by CodeCode »

CodeCode wrote: February 27th, 2023, 9:32 pm That looks great, But I am unsure how to cycle through the tracks in real time/

Is that possible with the webparser measures?

Thank for everything so far.
ok, to clarify, How do I gewt this:

Code: Select all

[MeasureWebParser]
Measure=WebParser
Flags=Resync | NoCookies
UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
URL="file:///[MeasurePath]Tracks.txt"
RegExp=(?siU)^#Get##Get##Get##Get##Get##Get##Get##Get##Get#
LogSubStringErrors=0
DynamicVariables=1

[MeasureWebParserChild1]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=1

[MeasureWebParserChild2]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=2

[MeasureaChild3]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=3

[MeasureWebParserChild4]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=4

[MeasureWebParserChild5]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=5

[MeasureWebParserChild6]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=6

[MeasureWebParserChild7]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=7

[MeasureWebParserChild8]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=8

[MeasureWebParserChild9]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=9

[MeasureWebParserChild10]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=10
The show a different line of text in an single any text meter?
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Small Idea About Clicking Through Lines Of Quote PlugIn Txt File.

Post by CodeCode »

So, I am trying this:

Code: Select all

[MeasureWebParser]
Measure=WebParser
Flags=Resync | NoCookies
UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
URL="file:///[MeasurePath]\Tracks.txt"
RegExp=(?siU)^#Get##Get##Get##Get##Get##Get##Get##Get##Get##Get#
LogSubStringErrors=0
DynamicVariables=1

[MeasureWebParserChild1]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=1
;.......
[OneTrack]
Meter=String
MeasureName=MeasureWebParserChild1
Text=%1
W=165
H=75
X=105
Y=r
StringAlign=Left
ClipString=2
FontColor=#CustomColor#
FontSize=11
Antialias=1
DynamicVariables=1
Group=ModeA
Hidden=0
It isnt working - at one point I got %1 to appear for a split second.

::Stumped::
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.