Aguacer0 Posted May 13, 2008 Posted May 13, 2008 I have two Window Services and one of them is dependent on the other. Right now the second service is set to "manual" for startup type while the first one is automatic. In order for the second service to work, the first service has to reach 60000k in Mem Usage before it can start. Any ways on doing this.
Immensee Posted May 13, 2008 Posted May 13, 2008 Hello, Well, i just made a little: While 1 $array = MemGetStats() If $array[1] > 60000 Then ;;program MsgBox(0, "", "OVER 60K!") EndIf WEnd ;;Program passed loop Exit Theoretically this must do the trick, but you can't continuously run this script. You must figure this out yourself how you solve this problem. Secondly, i'm not sure what kind of memory you want to read. AutoIt Help file shows and says the following: $array[0] = Memory Load (Percentage of memory in use) $array[1] = Total physical RAM $array[2] = Available physical RAM $array[3] = Total Pagefile $array[4] = Available Pagefile $array[5] = Total virtual $array[6] = Available virtual Good luck, immense
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