Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 465

Log error Re: Image not found

$
0
0
Sorry to dredge this up again!

So, I am trying to make my skin generic, then it can be used as an @include file to be used with other skins.
It's difficult to break it down to a minimum bite size code, so I'll just post all relevant references to the Cover code.

The only time I get the error is when I Refresh/Load the skin. So there's actually nothing wrong with the skin, I don't think. Which leads me to think it is more because Rainmeter is refreshing the skin and cannot find the cover image quickly enough before it is logging the error?

That's just a guess though, seeing as it works fine without any errors after that initial one on Refresh/Load.

Here's all relevant code sections related to the Cover image:

Code:

; THE !SetVariable CoverArt BANG SEEMS TO NOT BE REQUIRED; I PUT IT HERE JUST IN CASE YOU SUGGEST IT IS REQUIRED.[Rainmeter]Update=-1    (Tried setting this to 1000 and the error still only appears on Refresh/Load.)AccurateText=1DynamicWindowSize=1MouseActionCursor=0OnRefreshAction=[!SetVariable CoverArt "[&mMediaList1Name]"][!SetVariable CatClickValue "[mCategory1Name:EscapeRegExp]"][!UpdateMeasure mCategoryPath][!UpdateMeasureGroup Category][!UpdateMeter Category1][!SetVariable ListClickValue "[mMediaList1Name:EscapeRegExp]"][!UpdateMeasure mMediaListPath][!UpdateMeasureGroup MediaList][!UpdateMeter MediaList1][!UpdateMeterGroup Preview][!Redraw][Variables]CoverArt=[&mMediaList1Name]; IMAGE METER[CoverArt]Meter=ImageImagePath=#CategoryPath#\- Cover\ImageName=[#[#CURRENTSECTION]].jpgPreserveAspectRatio=1DynamicVariables=1Group=PreviewX=13Y=345W=150H=120; FILE VIEW COLUMN 1[sCategoryText]MeasureName=m#CURRENTSECTION#NamePadding=5,0,5,0LeftMouseUpAction=[!SetVariable CatClickValue "[m#CURRENTSECTION#Name:EscapeRegExp]"][!UpdateMeasureGroup Category][!UpdateMeterGroup Category][!SetOption mMediaListPath DynamicVariables 1][!SetVariable MediaListPath "[&m[#CURRENTSECTION]Name]"][!UpdateMeasure mMediaListPath][!SetOption mMediaListPath DynamicVariables 0][!CommandMeasure mMediaListPath "Update"][!UpdateMeasure mMediaListPath][!UpdateMeasureGroup MediaList][!UpdateMeterGroup MediaList][!SetVariable CoverArt "[&mMediaList1Name]"][!UpdateMeterGroup Preview][!Redraw][Play #@#GameBar\Sounds\#Sound#][!SetVariable ListClickValue "[mMediaList1Name]"][!UpdateMeasure mMediaListPath][!UpdateMeasureGroup MediaList][!UpdateMeter MediaList1][!Redraw]Group=CategoryX=rY=1RW=135[Category1]Meter=StringMeterStyle=sGlobalText | sCategoryTextX=([CategoryBg:X]+5)Y=([CategoryBg:Y]+10)[Category2][Category3]etc...; FILE VIEW COLUMN 2[sMediaListText]MeasureName=m#CURRENTSECTION#Padding=(#IconSize#*1.4),0,0,0MouseOverAction=[!SetOption ListHover X [#CURRENTSECTION#:X]][!SetOption ListHover Y [#CURRENTSECTION#:Y]][!SetOption ListHover Hidden 0][!UpdateMeter ListHover][!Redraw]MouseLeaveAction=[!SetOption ListHover X [#CURRENTSECTION#:X]][!SetOption ListHover Y [#CURRENTSECTION#:Y]][!SetOption ListHover Hidden 1][!UpdateMeter ListHover][!Redraw]LeftMouseUpAction=[!SetVariable ListClickValue "[m#CURRENTSECTION#:EscapeRegExp]"][!UpdateMeasureGroup MediaList][!UpdateMeterGroup MediaList][!Redraw][!SetVariable CoverArt "[&m[#CURRENTSECTION]]"][!UpdateMeterGroup Preview][!Redraw][Play #@#GameBar\Sounds\#Sound#]LeftMouseDoubleClickAction=[!CommandMeasure m#CURRENTSECTION# "FollowPath"][!UpdateMeasure mMediaListPath][!UpdateMeasureGroup MediaList][!Redraw]RightMouseUpAction=[!CommandMeasure m#CURRENTSECTION# "ContextMenu"]Group=MediaListX=rY=(#IconSize#+4)rW=170[MediaList1Name]Meter=StringMeterStyle=sGlobalText | sMediaListTextX=[ListBg:X]Y=([ListBg:Y]+10)[MediaList2Name][MediaList3Name]etc...
I realise you can't see what's going on with the skin in general from the code, but you can see that nothing here is actually wrong as the skin is indeed working fine, until a Refresh or unload and then load. This is the only time the error is registered in the Log.

It seems to me to be related to the OnRefreshAction, maybe, or to do with Rainmeter's issue with refreshing skins with images? I dunno!

Any ideas what the issue could be? Or is it a Rainmeter App problem, bug or something else?
Thanks. :thumbup:

EDIT:
Forgot to include the error from the Log:
ImageName: Unable to open: D:\Documents\Books\- Cover\.jpg (Utilities\MediaLauncher\BookList.ini)

Statistics: Posted by sl23 — Yesterday, 4:26 pm — Replies 25 — Views 359



Viewing all articles
Browse latest Browse all 465

Trending Articles