|
i try to use cmd line: "lively.exe" setwp --file "imagefile" --monitor 2 the rainmeter will generate "imagefile" full path name (which according to job log, seems correct); but somehow, if i manually set "imagefile" to a fix path, it works; but if i get it from rainmeter measurement, it's NOT working i try both "[measurename]" or "#varname#" to replace "imagefile", even the value reported in job log is correct, it still not working any comment on this? thanks |
Replies: 3 comments 1 reply
|
Did you try to use my rainmeter skin ? Successfully ? If your If you want to create your own rainmeter skin that run a For instance, in my skin, I call my script like: [MeasureSetDay]
Measure=Plugin
Plugin=RunCommand
Program=pwsh.exe
Parameter=-ExecutionPolicy Bypass -NoProfile -File "#ScriptPath##ScriptName#" -IncludeTags "day #TagsIncluded#"
StartInFolder=#ScriptPath#
State=Hide
OutputType=UTF8
Timeout=5000
RegExpSubstitute=1
Substitute="(?si).*New wallapaper set: (.+)":"\1"
FinishAction=[!Log "#CURRENTSECTION# Finished, TooltipTitle1 updated" Debug][!SetVariable TooltipTitle1 "Lively Wallpaper [#CURRENTSECTION#]"][!UpdateGroup LivelyIcon][!Redraw]Note the Try something like: [MeasureSetLivelyWallpaper]
Measure=Plugin
Plugin=RunCommand
; Full path to Lively exe if it is not in the PATH environment variable
Program="C:\Program Files\Lively Wallpaper\lively.exe"
; Command args
Parameter=setwp --file "#ImagePath#" --monitor 2
; Working dir (optionnal I guess)
StartInFolder=C:\Program Files\Lively Wallpaper\
; You may change this to debug
State=Hide
OutputType=UTF8
Timeout=5000
; Action to execute at the end
FinishAction=[!Log "Lively Wallpaper updated in monitor 2" Debug][!UpdateGroup LivelyIcon][!Redraw]If for some reason [MeasureSetLivelyWallpaper]
Measure=Plugin
Plugin=RunCommand
Program="C:\Program Files\Lively Wallpaper\lively.exe"
; Use triple quotes to handle internal quotes for paths with spaces
Parameter="""setwp --file "#ImagePath#" --monitor 2"""
State=Hide
FinishAction=[!Log "Lively updated" Debug]If still an issue, ask their forum. And when you find the solution, post it here to share it with everyone. |
|
hi, Fred, i did try your script, even "ImagePath" is a fixed image file full path, it doesn't change 2nd monitor wallpaper; however, my original code at least working for fixed image file -- my problem is my code seems only working fixed image file path; if i use it from a variable, it doesn't work any comments? i'm using following code [Variables] [Measure2ndImagePath] [MeterSetIcon] |
|
i figure out what's going on: in fact, use "RunCommand" plugin is correct way -- but i need to use anyway, now i can dynamically change 2nd monitor's wallpaper from rainmeter thanks and we can close this topic |
i figure out what's going on:
in fact, use "RunCommand" plugin is correct way -- but i need to use
[!CommandMeasure SetWallpaper2ndMonitor "Run"]
to trigger the measurement instead of using [!UpdateMeasure SetWallpaper2ndMonitor]
anyway, now i can dynamically change 2nd monitor's wallpaper from rainmeter
thanks and we can close this topic