NiceBoy1234 Posted November 18, 2015 Posted November 18, 2015 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 JLogan3o13 Posted November 18, 2015 Moderators Posted November 18, 2015 (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 November 18, 2015 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!
NiceBoy1234 Posted November 18, 2015 Author Posted November 18, 2015 HI and thank you, thanks for the help so if I do this: While ProcessExists("cmd.exe") Sleep(100) WEndSo process is never ending or it keeps looping.What excatly is meant by process the command line itself or the execution in it?
Moderators JLogan3o13 Posted November 18, 2015 Moderators Posted November 18, 2015 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!
NiceBoy1234 Posted November 18, 2015 Author Posted November 18, 2015 (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 November 18, 2015 by NiceBoy1234
NiceBoy1234 Posted November 18, 2015 Author Posted November 18, 2015 Seems like this worked thanks!Do you know something like:if !ProcessExists("aerender.exe") do something ....Endif
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