DraikSword Posted November 16, 2009 Share Posted November 16, 2009 Hello. I hope my question won't make you feel bored.I run a application five times and all of them worked together. First, they worked well. However, ten minutes later some of them took a lot of memories and made my computer run slowly. (I checked Processes Tab of Windows Task Manager and saw the column Mem Usage). Now I want to make a scipt to check how much memory that each window of my application is using and if they are more than xxx(K) they will be close, loop forever until I close all windows. My idea is use ProcessList, _MemGlobalSize and For...to...next...step functions. However, I get sizes of the specified memory objects always = 0 so none of them will be close. Any suggestions for me? Link to comment Share on other sites More sharing options...
jvanegmond Posted November 16, 2009 Share Posted November 16, 2009 I don't know what made you think you can use _MemGlobalSize to get the memory consumption of a process.. Use this instead: http://www.autoitscript.com/forum/index.php?showtopic=70538 github.com/jvanegmond Link to comment Share on other sites More sharing options...
DraikSword Posted November 16, 2009 Author Share Posted November 16, 2009 Manadar, thank so much. My problem is solved. I'm completely new with computer programming and not good at English. That's why many times I read a document but don't understand it clearly sometimes, understand in wrong way Nice you meet you Manadar. Have a nice day Link to comment Share on other sites More sharing options...
jvanegmond Posted November 16, 2009 Share Posted November 16, 2009 Nice to meet you too. Happy programming. github.com/jvanegmond Link to comment Share on other sites More sharing options...
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