It is currently March 29th, 2024, 7:46 am
Executing Powershell Script when loading Layout
-
- Posts: 1
- Joined: September 25th, 2022, 6:35 pm
Executing Powershell Script when loading Layout
Would anyone be able to provide some help with the commands needed to execute a powershell script when a new layout is loaded through rainmeter?
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Executing Powershell Script when loading Layout
I think you should add an OnRefreshAction option to the [Rainmeter] section of any of the skins belonging to the layout, which executes the script. When the layout is loaded, the skin is loaded and the added OnRefreshAction option is executed, so the script is as well.
However note that the script is executed as well if the skin in cause is loaded / refreshed outside of the layout (which is also possible).