Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 874

Bugs & Feature Suggestions • [Suggestion] RunCommand option to read output while app is running

$
0
0
There are quite a few cases where you'd want to not have to wait for the application run by a RunCommand measure to exit before getting its STDOUT result, so I'm just posting this here for when Brian has the time and mood to explore it, if desired. It's C# and not C++, so I don’t know if it's easily doable in C++, but since I understand C# better:
- https://stackoverflow.com/questions/14192699/how-to-read-standard-output-of-my-own-application
- https://learn.microsoft.com/en-gb/answers/questions/2168077/capturing-intermediate-output-in-c-powershell-cmdl
- https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.process.beginoutputreadline?view=net-9.0

Basically, being able to either read or log the STDOUT from a RunCommand in more or less real-time, for inspection. Could be implemented as a separate option in the measure (with its default value corresponding to the current way of doing things), to ensure it doesn't affect backward compatibility. Not sure if it's feasible to internally update the measure value more frequently, without needing a corresponding Update and UpdateDivider so it can potentially react to OnChangeAction, but that's a question for folks that know better than me.

Statistics: Posted by Yincognito — Today, 4:57 am — Replies 0 — Views 811



Viewing all articles
Browse latest Browse all 874

Trending Articles