Code: Select all
[Variables]
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
---Measures---
[Events]
Measure=Plugin
Plugin=RunCommand
Program=CScript
Parameter=\"#@#Event Log Test.vbs\"
State=Hide
OutputType=ANSI
Timeout=10000
---Meters---
[Result]
Meter=String
SolidColor=0,0,0,128
FontColor=255,255,255,255
FontSize=16
Padding=5,5,5,5
AntiAlias=1
MeasureName=Events
Text=Events:#CRLF#%1
LeftMouseUpAction=[!UpdateMeasure Events][!CommandMeasure Events "Run"]
Code: Select all
Const EVENT_SUCCESS = 0
Set objShell = Wscript.CreateObject("Wscript.Shell")
objShell.LogEvent EVENT_SUCCESS, "Event written to an event log using a script."
So, what's up with that? I'm just trying to eventually capture the STDOUT output of a script in CScript using RunCommand and display it in the skin. This particular script doesn't output anything, I only used it for simplicity in illustrating the behavior. It works fine from CMD, by the way. The \" are to escape quotes and are needed in this case. Placing everything in the Parameter option doesn't change anything, nor does renaming the script to a .wsf extension. Any thoughts?