The docs say that the RunCommand plugin uses the Command shell (cmd) to run commands by default, unless you set the Program parameter. If that is the case, to run this script, Rainmeter is going to run a Command shell to run a PowerShell... a shell inside a shell, which seems a little inefficient. So my thought/question is that for the purpose of running PowerShell (with or without scripts), it might be best to explicitly set the Program parameter; e.g. :
The docs say that the RunCommand plugin uses the Command shell (cmd) to run commands by default, unless you set the Program parameter. If that is the case, to run this script, Rainmeter is going to run a Command shell to run a PowerShell... a shell inside a shell, which seems a little inefficient. So my thought/question is that for the purpose of running PowerShell (with or without scripts), it might be best to explicitly set the Program parameter; e.g. :
Brian will have to weigh in, but I am under the impression that you can't avoid having cmd run in any case, as the whole thing is based on a ShellExcute, which will use the currently defined shell for Windows, which is cmd.exe, to launch whatever is defined in Program.
The way you have it certainly works, but I'm not entirely sure there is any real difference.
TomShadow55 wrote: ↑May 4th, 2022, 12:15 pm
hello, I would like to know if it is possible to add a command so that the SpeakTime is activated every hour?
it works but I don't understand why the voice says 4:59 and not 5 o'clock?
I made some modifications I put the code here so that you can check if there is not a bad command.
On the other hand for your [MeasureOnceAnHour] you use
Format=%#M if I understand correctly it is a calculation base on 60 min? isn't that why the voice command is triggered with a one-minute delay?
it got fixed.
it is possible to configure several commands? example at 11 a.m. it says "it's 11 a.m. take your medicine"
and is it possible to create a command that activates on click and that would give the full time and date?
I tried with LeftMouseClickAction=[!CommandMeasure MeasureRun "Run"] but it doesn't work