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

Community Plugins & Addons • Re: Finalshot

$
0
0
As I am not an expert in Python, but I made this a long ago– it’s a simple server tool that handles CORS without all the extra headaches. Just run it, hide it in the tray, and let it do its magic. No need for all those extra apps, and you can keep your focus where it belongs. Hope it makes life a little easier!

https://github.com/NSTechBytes/YourServer
Thanks a lot, and for the wishes too! In terms of dependencies though, it's more or less the same as I'm doing right now: your approach needs Python, Pillow and yourserver.py (3 dependencies), while the one I currently use needs NodeJS, NPM and HTTP Server (3 dependencies), so not that much of a difference between them, since both of them can disable CORS. I appreciate the suggestion though, you certainly have a lot of goodies you made, nice work! :thumbup:
I think in cases where you don't add a file extension at the end of the directory name (e.g., F:\Wireless), the command should look like this:

Code:

ShotCap.exe -f screenshot.jpg -r 750,300,400,400 -format jpg -quality 70 -p -repeat 0.04 180 -dir F:\Wireless
Thanks again, this works perfectly at the command line! In my skin though, where I now use a single measure and ShotCap, I have this:

Code:

shotcap -f Screenshot.jpg -r #CURRENTCONFIGX#,#CURRENTCONFIGY#,#CURRENTCONFIGWIDTH#,#CURRENTCONFIGHEIGHT# -format jpg -quality 70 -p -repeat 0.04 #FM# -dir "#CURRENTPATH#"
I therefore get this output:

Code:

Failed to save screenshot (C:\Users\[User]\Documents\Rainmeter\Skins\Screen Ruler" \Screenshot_001.jpg). Status code: 7
So the \ at the end of #CURRENTPATH# is not ignored by ShotCap, hence the error. Hardcoded paths without the ending \ work though, and so is this alternative form:

Code:

shotcap -f "#CURRENTPATH#Screenshot.jpg" -r #CURRENTCONFIGX#,#CURRENTCONFIGY#,#CURRENTCONFIGWIDTH#,#CURRENTCONFIGHEIGHT# -format jpg -quality 70 -p -repeat 0.04 #FM#
I just thought you should know about that \ issue, as that might occur in other cases too. I'm already using the alternative form and it works great, so thanks again! :rosegift:

Statistics: Posted by Yincognito — Yesterday, 6:39 pm



Viewing all articles
Browse latest Browse all 27

Trending Articles