Here is an interesting trick that allows you to monitor your Windows processes with KSX. You can leverage the KSX shell function with the Windows tasklist command.
The following windows batch code will return the memory use of the ksxserver.exe application.
@echo off
tasklist /fo table /nh /fi "imagename eq ksxserver.exe" > tasklist.txt
for /f "tokens=5 delims= " %%a in ('type tasklist.txt') do set mem=%%a
for /f "tokens=1,2 delims=, " %%a in ("%mem%") do set begin=%%a&set end=%%b
echo %begin%%end%
In KSX you can call this script and set the result to an attribute like so:
memUse = shell('cd "C:\scripts" & ksxservermem.bat');
The above batch script was named "ksxservermem.bat" and placed in the scripts folder on the C: drive. The attribute "memUse" is an attribute or a temporary variable in this script.
Have fun with this and see what new tricks you can come up with.