Jump to content
Sign in to follow this  

Create a delayed Window Service

Recommended Posts

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.

Share this post

Link to post
Share on other sites


Well, i just made a little:

While 1
    $array  =   MemGetStats()
    If $array[1] > 60000 Then
        MsgBox(0, "", "OVER 60K!")

;;Program passed loop

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,


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...