balala: thanks, that is helpful.
Now, it does seem (from
this documentation (subsection, 'A note on number value vs. string value') that I can get the process number of the top process. So presumably I can store that and compare it to its old value - and in that way, I can implement my algorithm.
That said, I have the following problems.
1) If I store any process number in a string, then that number becomes a string.
2) Rainmeter seems not to allow one to have variables that are not strings.
3) Seemingly strangely, within my
[measure_processTop] measure, which is set to measure the percentage of CPU used by the top process,
[measure_processTop:] does give that percentage, but
[measure_processTop] gives the process
name and I cannot seem to get the process
number - except, perhaps, as the
text field in a meter. (On that final point, about the Text field, see again the aforementioned bit of documentation.)
EDITED. (I changed 3.)