It is currently March 29th, 2024, 3:11 pm

communicating between skins

Tips and Tricks from the Rainmeter Community
legolas1042
Posts: 10
Joined: February 21st, 2010, 5:31 am

communicating between skins

Post by legolas1042 »

It is rare to find yourself in a situation where two skins must communicate some values between each other. It is, however, sometimes unavoidable for certain things... As rainmeter is a very open program one cannot always be sure of what the exact folder path will be and as a result what the config name of the skins may be. One potential way I've found to counteract this is to make your relative paths between skins that must communicate into a non-variable value. This way the paths are set in stone following approximately the format #SKINSPATH##TheConfigPathOfTheFirstSkin##PredeterminedRelativePath#...

So in effect you might have a folder "GenericSkin" and in that folder an ini file called "GenericSkin.ini" as well as a folder "SkinToCommunicateWith" in which is another ini file named "SkinToCommunicateWith.ini"... Then somewhere in the skin GenericSkin.ini is a set variable bang resembling something of the following, "!RainmeterSetVariable TheConfigPathOfTheFirstSkin '#CONFIGNAME#' '#SKINSPATH##CONFIGNAME#\SkinToCommunicateWith'"...

Another way you may be able to achieve the same effect is to organize the folders in the same way and simply use a Substitute="SkinToCommunicateWith":"" on the #CONFIGNAME# inside the SkinToCommunicateWith.ini file...

I guess that makes sense...