I currently have a small widget that allows me to run pwsh commands using the InputText plugin. However, when doing that there is always a window popping up for a quick second. I use the RunCommand plugin for a few of my other Skins (which can run commands completely silent) and I'm wondering if I can make it so that $UserInput$ from the InputText plugin gets executed by the RunCommand plugin instead.
This is my current code:
This is my current code:
Code:
[Background]Meter=ShapeShape=Rectangle (#BorderWidthOutside#/2),(#BorderWidthOutside#/2),(350*#Scale#),(35*#Scale#),#CornerRadiusOutside# | Fillcolor #Base# | Strokewidth #BorderWidthOutside# | Strokecolor #BorderOrange#LeftMouseUpAction=[!CommandMeasure "Input" "ExecuteBatch ALL"][Icon]Meter=ImageImageName=#@#Icons\powershell.pngImageTint=#ContentBlue#X=(10*#Scale#+(#BorderWidthOutside#/2))Y=(5*#Scale#+(#BorderWidthOutside#/2))W=(25*#Scale#)H=(25*#Scale#)AntiAlias=1[Input]Measure=PluginPlugin=InputTextX=(45*#Scale#+(#BorderWidthOutside#/2))Y=(5*#Scale#+(#BorderWidthOutside#/2))W=(295*#Scale#)H=(25*#Scale#)FontFace=#Font#FontSize=(14*#Scale#)FontWeight=600FontColor=#Text#SolidColor=#Background#DynamicVariables=1AntiAlias=1Command1=[powershell.exe $UserInput$]
Statistics: Posted by conaN — Yesterday, 6:11 pm — Replies 1 — Views 55