The above code only works if I open Task Manager and then End Process the powershell.exe in the list. Same thing if I enable the State=Show param and then subsequently CLOSE the cmd window that pops up.
I've tried all sorts of cmd and powershell command line options to try and get this thing to just output, but it's being stubborn.
Also, thanks for sharing that redistributable package. I didn't even think of that being the problem. Watch for a new version of the plugin that will hopefully get rid of that problem from now on.
Thank you sir! Couldn't get PowerShell to reproduce the behavior so didn't think to attribute it to that kind of bug. Will have to keep an eye on the PowerShell bugs now.
Great plugin! I have been using it to run a image resize command line program with State=Hide, to hide the ugly command line window popup. Though I have run into a little issue. I currently process each image through a loop and sometimes the resize program isn't finished resizing before RunCommand calls the resize program again for the next image and I get an "Error 101: Program Still Running".
Would it be possible to allow multiple instances of the program to be ran so that this issue can't happen?
Wallboy wrote:Would it be possible to allow multiple instances of the program to be ran so that this issue can't happen?
Not with the same measure. Have you tried using a secondary RunCommand measure? This would be the only way to run multiple instances of the same program at the same time.
You may have to use the "FinishAction" option to tell your loop that it is done processing and can continue to the next image.
I'm guessing this plugin ignores Disabled=1 from what I can tell? Usually I try to set up all my measures to run on demand with EnableMeasure/UpdateMeasure/CommandMeasure Run and then have a FinishAction to DisableMeasure. Guess the enable/disable is not needed for this plugin?
Wallboy wrote:I'm guessing this plugin ignores Disabled=1 from what I can tell? Usually I try to set up all my measures to run on demand with EnableMeasure/UpdateMeasure/CommandMeasure Run and then have a FinishAction to DisableMeasure. Guess the enable/disable is not needed for this plugin?
This plugin doesn't do any at all unless you tell it to with a !CommandMeasure.
I just want to run this little program, RedShift.exe, every fifteen minutes. One of the command line parameters I specify, -o, will run it as a “one-shot,” that is, it will execute the command and then self-terminate, so there should be no need to Close or Kill the program after it’s finished running.
I was using the following code prior to discovering this plugin and it worked as intended. The only thing is it would pop up the ugly cmd window each time, and I read that this plugin can run an exe while hiding the cmd window, which is my goal. So, the original, working code:
[MeasureSwitch]
Measure=Calc
{Irrelevant formula and AboveValue, BelowValue Bangs}
UpdateDivider=900
OnUpdateAction=redshift.exe -o -m wingdi -t 6500:4500 -l 41:-73
[MeasureSwitch]
Measure=Calc
{Irrelevant formula and AboveValue, BelowValue Bangs}
UpdateDivider=900
OnUpdateAction=!CommandMeasure MeasureRedShift Run
I downloaded the 32-bit version of the plugin and dropped it into this folder of my portable installation of Rainmeter:
Rainmeter\Plugins\RunCommand.dll
So where did I screw up?
Thanks in advance for any help.
Last edited by WandersFar on October 13th, 2014, 2:00 am, edited 1 time in total.