The topic in meantime got large enough, so I'm not entirely sure you got a solution, but if you didn't here is is.sl23 wrote: ↑August 1st, 2021, 10:08 pm Basically, a refresh makes #CloseApps# work fine. If I click any other Button#, again it works fine and Hibernates, Shutdown or Locks the PC, but click on Button1 to set the Variable back to #CloseApps# and it doesn't change. What this means is that whatever was clicked last, say, Button4 #Lock#, remains as the Variable when clicking Button1. Even though Button1 is clearly stated as #CloseApps#. WTF?
This is caused by quotes. In the CloseApps variable (as defined into the [Variables] section) you have quoted the Run parameter (CloseApps=!CommandMeasure mClose "Run"). When you want to set the Act variable into the LeftMouseUpAction option of the [Button1] meter, you quoted again the #CloseApps# variable. Those quotes confuse Rainmeter.
The solution is quite easy: remove the quotes from the Run parameter of the CloseApps variable (CloseApps=!CommandMeasure mClose Run). They are not needed, you can easily get rid of them. The other buttons are working, because there are no quotes in the other variables (Hibernate, Shutdown or Lock).