Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

How to get the size of a process?

$
0
0
I am dealing with a Java application, which creates multiple versions of a named window.

The named windows give a result of 0 (zero)  when called
[ autoit ]      
ConsoleWrite("!+ " & @ScriptLineNumber & " " &  FileGetSize(WinGetProcess("javaw.exe" ,"")) &  @CRLF)

Requesting
[ autoit ]      
$list = ProcessGetStats("javaw.exe",1) _ArrayDisplay($list, @ScriptLineNumber & " " & $list)
delivers the expected results, but not the size as posted in the fifth column of the task manager list.

The PID handle is easy to get with WinGetHandle("xyzabc - era", ""), but I cannot find a way to get the matching size.

Does anyone know a way?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>