Thinks for this tip.
This works
If Yincognito's solution does not work this is a good option.
I've copied it and let you know the outcome.Yincognito wrote: ↑July 24th, 2020, 11:02 am I believe I corrected all issues, let me know if I didn't:
I removed the unneeded refresh and replaced it with updating things and sliding out, added the needed update meter and redraw bangs in [UpDownSteady1], and moved a measure lost between meters back to where it should have been (sorry, but had to improve clarity).
Okeydokey. Just to be clear, this doesn't start the skin with the thing sliden out - if by any chance you actually wanted that. From your post it seemed that you simply wanted for things to work properly (e.g. update, slide out) on middle click, not start with the skin sliden out from the start.
Ok. I'm glad if you got it working as wanted.
Code: Select all
[meterTitleBox]
Meter=Shape
X=0
Y=492
Shape=Rectangle 0,0,30,25,5 | Fill Color #Backgroundcolor# | StrokeWidth 1.5 | Stroke Color #Backgroundcolor2#
LeftMouseUpAction=[!CommandMeasure "MeasureSlide" "Stop 2"][!CommandMeasure "MeasureSlide" "Execute 1"]
RightMouseUpAction=[!CommandMeasure "MeasureSlide" "Stop 1"][!CommandMeasure "MeasureSlide" "Execute 2"]
MiddleMouseUpAction=[!CommandMeasure InfoIndex1 "Update"][!UpdateMeasure *][!UpdateMeter *][!Redraw][!CommandMeasure "MeasureSlide" "Stop 2"][!CommandMeasure "MeasureSlide" "Execute 1"]
DynamicVariables=1
Well, the white color didn't happen for me while working on your skin earlier, and doesn't happen (at least not yet) at the time of posting this screenshot either. Who knows, maybe I didn't wait long enough or there are some other circumstances that cause this and that I'm not aware of: Using the middle mouse does the right thing, which is update the WebParser and slide out the skin. The log shows that there was a regexp error in the WebParser measure, which means the measure did try to update (which was what I added to the code) but failed ... because of the regex you already had in the skin (and which I didn't touch, since you never mentioned it and it appeared to work fine for me). So, you should be a bit more cautious in placing the "blame" for things not working out, since, again:JamX wrote: ↑July 24th, 2020, 2:11 pm Yincognito,
Adjusting the code did not help.
The Up/Down indicator is set to "-" despite the negative values of the stock and percentuele change and are now again WHITE.
Capture.JPG
Here are the measured values
Capture1.JPG
Here is the log:
Capture2.JPG
Once they are white they stay white. Maybe that's a clue what is wrong
Using the MiddleMouseUpAction you added to the metertitlebox does NOTHING!
Code: Select all
[meterTitleBox] Meter=Shape X=0 Y=492 Shape=Rectangle 0,0,30,25,5 | Fill Color #Backgroundcolor# | StrokeWidth 1.5 | Stroke Color #Backgroundcolor2# LeftMouseUpAction=[!CommandMeasure "MeasureSlide" "Stop 2"][!CommandMeasure "MeasureSlide" "Execute 1"] RightMouseUpAction=[!CommandMeasure "MeasureSlide" "Stop 1"][!CommandMeasure "MeasureSlide" "Execute 2"] MiddleMouseUpAction=[!CommandMeasure InfoIndex1 "Update"][!UpdateMeasure *][!UpdateMeter *][!Redraw][!CommandMeasure "MeasureSlide" "Stop 2"][!CommandMeasure "MeasureSlide" "Execute 1"] DynamicVariables=1
Code: Select all
[UpDownSteady1]
Measure=Calc
Formula=mIndex1_UpDown
IfAboveValue=0
IfAboveAction=[!SetOption "LabelIndex1_Change" "FontColor" "#ColorUp#"] [!SetOption "LabelIndex1_ChangePer" "FontColor" "#ColorUp#"] [!SetOption "UpDownImage_1" "ImageName" "Up.png"][!UpdateMeter *][!Redraw]
IfEqualValue=0
IfEqualAction=[!SetOption "LabelIndex1_Change" "FontColor" "#ColorSteady#"] [!SetOption "LabelIndex1_ChangePer" "FontColor" "#ColorSteady#"][!SetOption "UpDownImage_1" "ImageName" "Steady.png"][!UpdateMeter *][!Redraw]
IfBelowValue=0
IfBelowAction=[!SetOption "LabelIndex1_Change" "FontColor" "#ColorDown#"] [!SetOption "LabelIndex1_ChangePer" "FontColor" "#ColorDown#"] [!SetOption "UpDownImage_1" "ImageName" "Down.png"][!UpdateMeter *][!Redraw]
Yeah, it happens sometimes, miscommunication. Probably my mistake as well, but all clear now.JamX wrote: ↑July 24th, 2020, 4:01 pm Seems there is a bit of miscommunication
It's not my intension to "blame" someone or something. I just tried to emphasize that mouse action didn't do anything to my skin.
If it offended you, I'm sorry for that.
After restarting rainmeter it did what it should do. Rainmeter got stuck or something like that, I think.
Strange thing is that even after multiple automatic webparser updates the values were still WHITE.
You would assume after the parser updates, like you say, every 15 seconds the color assigning is also updated:Code: Select all
[UpDownSteady1] Measure=Calc Formula=mIndex1_UpDown IfAboveValue=0 IfAboveAction=[!SetOption "LabelIndex1_Change" "FontColor" "#ColorUp#"] [!SetOption "LabelIndex1_ChangePer" "FontColor" "#ColorUp#"] [!SetOption "UpDownImage_1" "ImageName" "Up.png"][!UpdateMeter *][!Redraw] IfEqualValue=0 IfEqualAction=[!SetOption "LabelIndex1_Change" "FontColor" "#ColorSteady#"] [!SetOption "LabelIndex1_ChangePer" "FontColor" "#ColorSteady#"][!SetOption "UpDownImage_1" "ImageName" "Steady.png"][!UpdateMeter *][!Redraw] IfBelowValue=0 IfBelowAction=[!SetOption "LabelIndex1_Change" "FontColor" "#ColorDown#"] [!SetOption "LabelIndex1_ChangePer" "FontColor" "#ColorDown#"] [!SetOption "UpDownImage_1" "ImageName" "Down.png"][!UpdateMeter *][!Redraw]
So I added my useragent: MyUserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36 Edg/84.0.522.40; --- # UserAgent string # ---
;You MUST check and assign a UserAgent string or the skins will not work. To find out the UserAgent string for your internet browser, you can connect to WhatIsMyBrowser ( https://www.whatismybrowser.com/detect/what-is-my-user-agent ) and then paste the string it returns below: -------------------------------
MyUserAgent = Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
Code: Select all
[InfoIndex1]
Measure=WebParser
URL=https://www.cnbc.com/quotes/#Symbol1#
UserAgent=#MyUserAgent#
RegExp=#ExpQuote#
StringIndex=1
UpdateRate=#UpdateQuotes#
FinishAction=[!Log "Quote Update Finished"]