Jump to content

Recommended Posts

Posted

How do I check if there is no process left in my commando line when I use aerender.
Basic code looks like this:

aerender -project c:\projects\project_1.aep -comp "Composition_1" -output c :\output\project_1\project_1.avi
 
After this code is written aerender goes through every image to create the avi, depending to the amount of images this takes quiet a while.

Is it possible to check in Autoit if there are no running processes left in the command line or if aerender fully finished?
  • Moderators
Posted (edited)

Look at what the process for aerender is, then do something like this:

While ProcessExists(<process>)
   Sleep(100)
WEnd

 

Edit: Welcome to the forum, btw.

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

HI and thank you, thanks for the help so if I do this:

      While ProcessExists("cmd.exe")
         Sleep(100)
      WEnd

So process is never ending or it keeps looping.

What excatly is meant by process the command line itself or the execution in it?

  • Moderators
Posted

That code is saying simply, As long as the process cmd.exe exists, sleep 100 milliseconds. If you want to wait for aerender to finish, you need to look in the task manager at what process spawns when you call your project.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted (edited)

Ah now I get it a little the process's name is aerender.exe.
So I will try this now:
      While ProcessExists("aerender.exe")
         Sleep(1000)
         ConsoleWrite("test")
      WEnd

Edited by NiceBoy1234

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
×
×
  • Create New...