ashley Posted December 30, 2007 Posted December 30, 2007 urm do anybody know any ready made code that i can adapt that shows the RAM and HDD info. also if possible is the RAM over 85%, the text turns red. and if the hdd sapce is over 85% used then it goes red too. thanks. Free icons for your programs
James Posted December 30, 2007 Posted December 30, 2007 Check out my Disk Manager. I am not sure about RAM info, I am working on that Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
ashley Posted December 30, 2007 Author Posted December 30, 2007 its confusing too much code that i have no idea about code u just post same info here. Free icons for your programs
James Posted December 30, 2007 Posted December 30, 2007 Oh my god Ashley. Even I can understand it. Look at the Drive functions in the helpfile. Urgh, your... Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
covaks Posted December 30, 2007 Posted December 30, 2007 (edited) MsgBox(1,"",PercentMemoryFree() & "% Free physical memory") MsgBox(1,"",PercentHardDriveFree() & "% Free space on C:") Func PercentMemoryFree() Local $objWMI = ObjGet("winmgmts:\\.\root\cimv2") Local $collection = $objWMI.ExecQuery("Select * from Win32_OperatingSystem") Local $FreeMemory Local $TotalMemory Local $obj For $obj In $collection $FreeMemory = $obj.FreePhysicalMemory Next $collection = $objWMI.ExecQuery("Select * from Win32_ComputerSystem") For $obj In $collection $TotalMemory = $obj.TotalPhysicalMemory Next Return Int((($FreeMemory*1024) / $TotalMemory) * 100) EndFunc Func PercentHardDriveFree() Return Int((DriveSpaceFree("C:") / DriveSpaceTotal("C:")) * 100) EndFunc Edited December 30, 2007 by covaks
James Posted December 30, 2007 Posted December 30, 2007 Covaks, is it ok if I use your free memory function in my program please? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
James Posted December 30, 2007 Posted December 30, 2007 Have you seen MemGetStats in the helpfile by any chance Ashley? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
covaks Posted December 30, 2007 Posted December 30, 2007 Wel, I sure didn't. lol. That would have helped.
ashley Posted December 30, 2007 Author Posted December 30, 2007 yes i have but on my oldpc, im currently on my new lkaptop, which don't have autoit yet... so all the program script(including all-in-one protection center) have been written in notepad lol. ill check that scrip out thta u posted 2moz thanks. Free icons for your programs
James Posted December 31, 2007 Posted December 31, 2007 But you have internet access? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
ashley Posted December 31, 2007 Author Posted December 31, 2007 yes i do. but im getting an Anti-virus before i download anything... i trust autoit not to have any in, but when i download one thing i get obsessed and download 100's of things lol... so it best to wait... anyways im getting virus protection 2day so,so ill have in n time. Free icons for your programs
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now