It is currently December 3rd, 2020, 10:37 am

Refreshing a skin using Python

Share and get help with Plugins and Addons
User avatar
SweeneyTodd
Posts: 8
Joined: February 17th, 2014, 3:29 pm

Refreshing a skin using Python

Post by SweeneyTodd »

I have a python script which edits a text file used by my skin. I want it to refresh the skin after it is done with text file but I can't find a way to do so. Can anyone give any ideas?
(If this is possible using a dll created with C or C++, I can also use this way)
User avatar
moshi
Posts: 1837
Joined: November 13th, 2012, 9:53 pm

Re: Refreshing a skin using Python

Post by moshi »

http://docs.rainmeter.net/manual/bangs
Bangs can also be used from the Windows command line as a parameter to the Rainmeter.exe executable. Example: "C:\Program Files\Rainmeter\Rainmeter.exe" !RefreshApp.
so, in your case:

"path\to\Rainmeter.exe" !Refresh "Config"
http://docs.rainmeter.net/manual/bangs#Refresh
http://docs.rainmeter.net/manual/skins#Config
User avatar
SweeneyTodd
Posts: 8
Joined: February 17th, 2014, 3:29 pm

Re: Refreshing a skin using Python

Post by SweeneyTodd »

I must have missed that in the manual, thank you!