> > 
> > local ms = dll.create_struct("ui[2] uh[7]")
> > ms[1] = (ms.size)
> > dll.call("GlobalMemoryStatusEx|t*", ms)
> > 

> > 
> > Mr. 3-Gig could give it a try then ...
> 
> Happy to, but what exactly do I need to do and how do I do it!?

Download and install dll plugin from files|plugsin section of yahoo.

Create a file called (say) mem.txt in your script folder containing:

args index
local ms = dll.create_struct("ui[2] uh[7]")
ms[1] = (ms.size)
dll.call("GlobalMemoryStatusEx|t*", ms)
quit( int64.divide(ms[index],(1024*1024)))

Replace pmem in *info with
expr(.mem(4))

where 4 can be replaced by any of the data items you wanted 
displayed from memorystatus:

DWORD dwLength;  
DWORD dwMemoryLoad;  
DWORDLONG ullTotalPhys;  
DWORDLONG ullAvailPhys;    // 4 = available physical
DWORDLONG ullTotalPageFile;  
DWORDLONG ullAvailPageFile;  
DWORDLONG ullTotalVirtual;  
DWORDLONG ullAvailVirtual;  
DWORDLONG ullAvailExtendedVirtual;




Reply via email to