"Sheri" wrote:
> Maybe this will get you started.
>
> There may be other options, but here is one way to get the memory
usage reported in Task Manager.
>
> local processid=win.getprocessid(win.handle("=Opera"))
>
> clip.clear
> local wmicmd= ;;+
> ?"/c wmic /output:clipboard process "++processid ;;+
> ++" get workingsetsize"
> file.runwait(0, env("COMSPEC"), wmicmd, "", "hide")
> local output=regex.m1(clip.get, ?"\d+", "\\0")
> win.debug("workingsetsize: "++output/1024)
Sheri, I tested your script and it only outputs the "workingsetsize",
if I run PowerPro as admin, which I do not.
I've set up some commands to prompt me the password only
when needed, and so far, I'm running it fine under LUA.
Using the above, I don't know how to run it in the user context,
since wmic requires admin rights.
When I had Klipfolio installed, I used a klip that acted like a mini
task manager.
here's the link:
Process Monitor
<http://downloads.klipfolio.com/klipinfo/7928/Process_Monitor?sid=677>
(open it with your text editor, it's an xml file renamed to .klip)
that works under LUA, maybe you can get some idea based on that file, to
help me retrieve that info under LUA.
If you don't mind of course...
[Non-text portions of this message have been removed]