Sign in to follow this  
Followers 0
NiceBoy1234

Adobe aerender check if finshed

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  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

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  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

Share this post


Link to post
Share on other sites

Seems like this worked thanks!
Do you know something like:

if !ProcessExists("aerender.exe")

        do something ....

Endif

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  
Followers 0

  • Similar Content

    • NiceBoy1234
      By NiceBoy1234
      What is the best way to install a .air file with autoit?
      So far the programs understand if a usb driver is plugged in and opens the path which holds the .air file and runs it.

      I tried to install it using tabs and other keys but that is problematic.
      Could be there a solution to install in via command line or something where I can change things like installation location like in the normal installation?
    • mdwerne
      By mdwerne
      I'm attempting to created a windows task using SCHTASKS, but seem to have my formatting incorrect as a double quote is getting stripped out. How might I correct my code to resolve this dilemma?
      #RequireAdmin #include <AutoItConstants.au3> Global $TaskName, $sStartTime, $Program, $ProgramName, $Argument $TaskName = "MyTask" $sStartTime = "15:00" $ProgramName = "\\Server\share\myapp.exe" $Argument = " /verbose" $Program = '"' & $ProgramName & '"' & $Argument & '"' MsgBox(0, "Program with Argument", $Program) Scheduler() Func Scheduler() Local $sCmd, $sStartDate, $sDateTime, $sXtra_Parms, $Result Local $QueryTask = Run("SCHTASKS /QUERY /TN " & $TaskName, "", @SW_HIDE, $STDOUT_CHILD) Local $line = "" If @OSVersion = "WIN_VISTA" Or @OSVersion = "WIN_7" Or @OSVersion = "WIN_8" Or @OSVersion = "WIN_81" Then $sXtra_Parms = " /Z /V1" While 1 $line &= StdoutRead($QueryTask) If @error Then ExitLoop WEnd If $line = "" Then MsgBox(1, "Task Command", 'SCHTASKS /CREATE /TN ' & $TaskName & ' /TR ' & '"' & $Program & '"' & ' /ST ' & $sStartTime & ' /SC ONCE /RU SYSTEM' & $sXtra_Parms) $sCmd = 'SCHTASKS /CREATE /TN ' & $TaskName & ' /TR ' & '"' & $Program & '"' & ' /ST ' & $sStartTime & ' /SC ONCE /RU SYSTEM' & $sXtra_Parms ;$sCmd = 'SCHTASKS /CREATE /TN ' & $TaskName & ' /TR ' & $Program & ' /ST ' & $sStartTime & ' /SC ONCE /RU SYSTEM' & $sXtra_Parms Else $sCmd = 'SCHTASKS /CHANGE /TN ' & $TaskName & ' /ST ' & $sStartTime EndIf $Result = Run($sCmd, "", @SW_HIDE) If $Result > 0 Then MsgBox(64, "Success!!", "The task was successfully created.") Else MsgBox(48, "Sorry...", "There was a problem scheduling this installation, please contact the HelpDesk for assistance.") EndIf EndFunc ;==>Scheduler The task is created with the above code, except the formatting is wrong so I getting an invalid directory error upon run time.
      The above creates this command (Serversharemyapp.exe" /verbose) in the task scheduler.
      What I'm actually trying to get is ("Serversharemyapp.exe" /verbose)
      The first double quote is being stripped out using my faulty code.
      Any suggestions?
      Thanks for your time,
      -Mike