Prerequisites (not sure if the below can be reproduced by using other prerequisites, but these are mine):
1) shotcap
2) ffmpeg
3) gifsicle
Test skin (capturing an 180 frames max GIF of its area when left clicking and the border turns opaque yellow):Result (parse error towards the end of the measure value due to gibberish after the command):Parse error, at least 3 arguments were expected, only 1 given in string ':\Windows\system32\cmd.exe /U /C shotcap -f "C:\Users\[User]\Documents\Rainmeter\Skins\Test\Screenshot.jpg" -r 919,759,100,100 -format jpg -quality 70 -p -repeat 0.04 180 && ffmpeg -y -i "C:\Users\[User]\Documents\Rainmeter\Skins\Test\Screenshot_%03d.jpg" -vf "fps=25,split[s0][s1];[s0]palettegen=max_colors=32[p];[s1][p]paletteuse=dither=bayer" -loop 0 "C:\Users\[User]\Documents\Rainmeter\Skins\Test\Animation.gif" && gifsicle -O3 --lossy=35 -o "C:\Users\[User]\Documents\Rainmeter\Skins\Test\Animation Lossy Compressed.gif" "C:\Users\[User]\Documents\Rainmeter\Skins\Test\Animation.gif" && del /A /F "C:\Users\[User]\Documents\Rainmeter\Skins\Test\Screenshot_*.jpg" "C:\Users\[User]\Documents\Rainmeter\Skins\Test\Animation.gif"er_Core11Temp:0@֩W?N'
Notes:
- first I thought my custom tooltip skins were the cause, as the gibberish can return bang parts and such and get longer than above, but they're not
- then I thought the prerequisites were the cause, but ffmpeg and gifsicle are beyond doubt and shotcap is developed by nstechbytes on the forum
- then I thought the output type was the cause, but the issue happens for other output types in the RunCommand measure
- then I thought the multi command, the && or the time taken to complete were the cause, but I don't have an answer to that yet
- then I thought maybe it was the Rainmeter test build I'm using now (4.5.22.3833), but this happens with previous stable Rainmeter versions
- the above is somewhat similar to the issue from NightHawkSLO's Mouse plugin, where one gets gibberish on occasion in the log
1) shotcap
2) ffmpeg
3) gifsicle
Test skin (capturing an 180 frames max GIF of its area when left clicking and the border turns opaque yellow):
Code:
[Variables]Alpha=128Shots=180[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1---Measures---[Record]Measure=PluginPlugin=RunCommandStartInFolder=#@#Program=%ComSpec% /U /CParameter=shotcap -f "#CURRENTPATH#Screenshot.jpg" -r #CURRENTCONFIGX#,#CURRENTCONFIGY#,#CURRENTCONFIGWIDTH#,#CURRENTCONFIGHEIGHT# -format jpg -quality 70 -p -repeat 0.04 #Shots# && ffmpeg -y -i "#CURRENTPATH#Screenshot_%03d.jpg" -vf "fps=25,split[s0][s1];[s0]palettegen=max_colors=32[p];[s1][p]paletteuse=dither=bayer" -loop 0 "#CURRENTPATH#Animation.gif" && gifsicle -O3 --lossy=35 -o "#CURRENTPATH#Animation Lossy Compressed.gif" "#CURRENTPATH#Animation.gif" && del /A /F "#CURRENTPATH#Screenshot_*.jpg" "#CURRENTPATH#Animation.gif"State=HideOutputType=ANSIUpdateDivider=-1FinishAction=[!SetVariable Alpha 128][!UpdateMeter *][!Redraw]DynamicVariables=1---Meters---[Background]Meter=ShapeShape=Rectangle 1,1,98,98 | Fill Color 0,0,0,1 | Stroke Color 255,255,0,#Alpha# | StrokeWidth 2UpdateDivider=-1LeftMouseUpAction=[!SetVariable Alpha 255][!UpdateMeter *][!Redraw][!UpdateMeasure *][!CommandMeasure Record "Run"]DynamicVariables=1
Notes:
- first I thought my custom tooltip skins were the cause, as the gibberish can return bang parts and such and get longer than above, but they're not
- then I thought the prerequisites were the cause, but ffmpeg and gifsicle are beyond doubt and shotcap is developed by nstechbytes on the forum
- then I thought the output type was the cause, but the issue happens for other output types in the RunCommand measure
- then I thought the multi command, the && or the time taken to complete were the cause, but I don't have an answer to that yet
- then I thought maybe it was the Rainmeter test build I'm using now (4.5.22.3833), but this happens with previous stable Rainmeter versions
- the above is somewhat similar to the issue from NightHawkSLO's Mouse plugin, where one gets gibberish on occasion in the log
Statistics: Posted by Yincognito — April 9th, 2025, 10:56 pm — Replies 3 — Views 130