Today I decided to try my hand at using the Button meter. My idea was to do a power control skin using the commands from this Tips and Tricks article. I know I'm doing the button meter and the !bang format right, because if I try to use other commands like the ones for the Control Panel or Task Manager in the skin, it works. Also, running the commands given in the Tips and Tricks article in the Windows "Run" dialogue also works. But launching those same commands from the skin does not seem to work at all, and I'm totally stumped.
I'm using Win7 64-bit on a Standard account, so I tried running Rainmeter as my Administrator account - no difference.
Did I miss some fine print somewhere? (i.e. "Note that the Button meter does not work with certain system commands.")
My code:
Code: Select all
[Rainmeter]
Author=Colonel Darby | droid.delusional@gmail.com
Update=1000
AppVersion=1003000
[Metadata]
[Variables]
[ToggleMeter]
Meter=BUTTON
X=5
Y=5
ButtonImage=#ROOTCONFIGPATH#\Images\ShutdownButton.png
ButtonCommand=!RainmeterToggleMeterGroup Power
[ShutdownMeter]
Meter=BUTTON
X=r
Y=5R
ButtonImage=#ROOTCONFIGPATH#\Images\ShutdownButton.png
ButtonCommand=!Execute ["shutdown.exe -s"]
Group=Power
[RestartMeter]
Meter=BUTTON
X=5R
Y=r
ButtonImage=#ROOTCONFIGPATH#\Images\RestartButton.png
ButtonCommand=!Execute ["shutdown.exe -r"]
Group=Power
[HbernateMeter]
Meter=BUTTON
X=5R
Y=r
ButtonImage=#ROOTCONFIGPATH#\Images\HibernateButton.png
ButtonCommand=!Execute ["rundll32.exe powrprof.dll,SetSuspendState"]
Group=Power
[SleepMeter]
Meter=BUTTON
X=5R
Y=r
ButtonImage=#ROOTCONFIGPATH#\Images\SleepButton.png
ButtonCommand=!Execute ["Rundll32.exe Powrprof.dll,SetSuspendState Sleep"]
Group=Power
[LogoutMeter]
Meter=BUTTON
X=5R
Y=r
ButtonImage=#ROOTCONFIGPATH#\Images\LogoutButton.png
ButtonCommand=!Execute ["shutdown.exe -l"]
Group=Power
[LockMeter]
Meter=BUTTON
X=5R
Y=r
ButtonImage=#ROOTCONFIGPATH#\Images\LockButton.png
ButtonCommand=!Execute ["rundll32.exe user32.dll LockWorkStation"]
Group=Power
Darby/Falconer/DelusionalDroid/et al