Try this, and see if a different handler changes things (it automatically runs either directly or hidden the script above, depending on the commented line):Nightblade wrote: ↑August 6th, 2020, 2:27 am Doesn't help with focus-stealing sadly.
Edit: The VBS has no output other than MsgBox for errors. Running it via Task Scheduler does not steal focus.Code: Select all
[RunVBS] Measure=Plugin Plugin=RunCommand State=Hide Parameter=#@#Scripts\ABB-Usage.vbs #CURRENTCONFIG# #CURRENTFILE#
Code: Select all
[Variables]
UpdateCount=60
Handler=wscript.exe
;Handler=cscript.exe
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
---Measures---
[MeasureRunHidden]
Measure=Plugin
Plugin=RunCommand
Parameter=#Handler# #@#Scripts\HelloWorld.vbs
State=Hide
OutputType=ANSI
Timeout=5000
[MeasureCounter]
Measure=Calc
Formula=(MeasureCounter+1)
IfCondition=(MeasureCounter=#UpdateCount#)
IfTrueAction=["#Handler#" "#@#Scripts\HelloWorld.vbs"]
;IfTrueAction=[!CommandMeasure MeasureRunHidden "Run"]
IfConditionMode=1
DynamicVariables=1
---Meters---
[MeterRunCounter]
Meter=String
FontSize=16
FontFace=Consolas
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
Y=0R
AntiAlias=1
MeasureName=MeasureCounter
Text=Update Counter (Run at #UpdateCount#): %1 updates
[MeterRunHidden]
Meter=String
FontSize=16
FontFace=Consolas
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
Y=0R
AntiAlias=1
Text=Click to Run using RunCommand - hidden
LeftMouseUpAction=[!CommandMeasure MeasureRunHidden "Run"]
[MeterRunDirectly]
Meter=String
FontSize=16
FontFace=Consolas
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
Y=0R
AntiAlias=1
Text=Click to Run directly - briefly visible
LeftMouseUpAction=["#Handler#" "#@#Scripts\HelloWorld.vbs"]
Maybe one could deal with it in VBS itself. Take a look here for details.