I have tried days to find a simple method to create an icon to Rainmeter that minimize all opened windows and go straight to desktop skin. My plan was to make an icon on the topmost layer position so that, whenever i want to go to Desktop I could just click on it which will replicate the function of "Winkey + D".
After trying numerous methods, I found a simple option that you can use to get this done. Just simply copy paste the following code to the Rainmeter icon you have created and you will have an icon to Minimize all windows and go to Desktop skin.
Last edited by balala on June 1st, 2020, 8:14 am, edited 1 time in total.
Reason:Please use <code> tags whenever are you posting code snippets. It's the </> button.
CJDayaratna wrote: ↑June 1st, 2020, 8:06 am
I have tried days to find a simple method to create an icon to Rainmeter that minimize all opened windows and go straight to desktop skin. My plan was to make an icon on the topmost layer position so that, whenever i want to go to Desktop I could just click on it which will replicate the function of "Winkey + D".
After trying numerous methods, I found a simple option that you can use to get this done. Just simply copy paste the following code to the Rainmeter icon you have created and you will have an icon to Minimize all windows and go to Desktop skin.
This way this code doesn't work, because a skin can be loaded only if there is at least one visual element (a meter). In your code such a meter doesn't exist. I suppose [Desktop] should be such a meter (an Image meter, for instance), but it's not so far, not having a Meter=Image (or whatever) option. So if you try to load the skin having the above code, Rainmeter refuses to do this, saying that "The skin XXX does not contain any meters and will be deactivated. the file may be damaged or it may not be a valid skin." You should have to add at least the following options to the [Desktop] section:
Obviously the involved options are optional and can be modified as you want, but the idea is to set the [Desktop] section as a meter, with some options.
balala wrote: ↑June 1st, 2020, 8:26 am
This way this code doesn't work, because a skin can be loaded only if there is at least one visual element (a meter). In your code such a meter doesn't exist. I suppose [Desktop] should be such a meter (an Image meter, for instance), but it's not so far, not having a Meter=Image (or whatever) option. So if you try to load the skin having the above code, Rainmeter refuses to do this, saying that "The skin XXX does not contain any meters and will be deactivated. the file may be damaged or it may not be a valid skin." You should have to add at least the following options to the [Desktop] section:
Obviously the involved options are optional and can be modified as you want, but the idea is to set the [Desktop] section as a meter, with some options.