Jump to content

Nero Recode processing


bp1000
 Share

Recommended Posts

I'm trying to create an autoit script to process a number of Nero Recode instances in sequential order. What I do is setup Nero Recode to process the video files and create a Nero image on disk. The Nero Recode window is then paused. I do this with multiple different videos and then I want the autoit script to take the first Nero Recode instance and click on the restart button and then wait. When the first instance has completed, I want Autoit to then process the second and then so on.

My script will restart a paused Nero Recode, but it does not wait for it to finish, but then goes and starts the next straight away. So instead of sequential processing, I get parallel processing and my PC grinds down to a halt.

My code is:

CODE
; Batch Nero Recode

;

; Expects Recode instance(s) to be on final setup screen after saving to NRG file and in pause

; Pressing "Resume" restarts the recoding

While WinExists("Nero Recode")

WinActivate("Nero Recode")

WinWaitActive("Nero Recode")

ControlFocus("Nero Recode", "Resume", 1011)

ControlClick("Nero Recode", "Resume", 1011)

WinWaitClose("Nero Recode", "Finished")

WEnd

Any pointers on how to do this would be appreciated.

Regards, Brendan

Link to comment
Share on other sites

Welcome to the forum.

Manually perform the steps that you want your script to perform up to the window that displays "Finished" then use the "AutoIt Window Info" tool to view the info for that window.

Freeze the info in that tool via CTRL-ALT-F

Copy/paste the info in that tool to your next post and we will see if we can find a reason why your WinWaitClose line of code is not working for you.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

Thanks for the welcome.

Here is the autoit window info:

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: Nero Recode

Class: #32770

Size: X: 118 Y: 101 W: 788 H: 567

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 1012 Y: 382

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0xD6E7FF Dec: 14084095

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size:

Control ID:

ClassNameNN:

Text:

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

List1

Enable video preview

Status

Finished

Progress:

0.0%

Elapsed:

00:26.15

Time remaining:

Frames/sec:

0.00

Progress1

More >>

Back

Next

The Ultrabuffer is a buffer for your computer's temporary memory. It acts as a secondary buffer in addition to your recorder's physical buffer. This unique Nero technology makes the burn process more reliable.

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

Copy:

1/1

Show Nero Digital compatible devices

Options

Shut down computer when finished

Priority:

Low

Regards, Brendan

Link to comment
Share on other sites

Sorry that I did not notice this before.

The remarks for WinWaitClose states this:

If the window already doesn't exist when this function is called it will return 1 immediately. The window is polled every 250 milliseconds or so.

You will need a WinWait line above that WinWaitClose... maybe
WinWait("Nero Recode", "Finished")
...hope this helps...

Edit: thanks for posting the info from the "AutoIt Window Info" tool. The info in that tool and in your code correlate just fine.

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

Sorry that I did not notice this before.

The remarks for WinWaitClose states this:You will need a WinWait line above that WinWaitClose... maybe

WinWait("Nero Recode", "Finished")
...hope this helps...

Edit: thanks for posting the info from the "AutoIt Window Info" tool. The info in that tool and in your code correlate just fine.

Thank you very much herewasplato. You have quickly pointed out my error. I had incorrectly assumed WinWaitClose was like doing a WinWait then a WinClose. I have now resolved the problem by replacing the WinWaitClose call with a WinWait followed by a WinClose with "Nero Recode" and "Finished".
Link to comment
Share on other sites

Thank you very much herewasplato...

You are welcome. Maybe I'll remember that issue the next time that I see code like in your original post - but I'll probably forget it - as I do lay claim to the title of Most Senile Poster. :-)

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...