PDA

View Full Version : updated QTBatch script for QuickTime v7



TarkusShakti
07-08-2005, 03:15 PM
The QuickTime converter batch exe which is located in Codec Central wll not work with the new QuickTime -v7. This exe is an AutoIt -v2 created file.

I have updated the script's source to the new version of AutoIt (-v3) and made it work with the new QuickTime.

Since I can't attach a binary to this message, here is the source for the new version:

FileCopy ( $CmdLine[1] , "C:\temp.wav" )
run ( "c:\Program Files\QuickTime\QuickTimePlayer.exe c:\temp.wav" )
WinWait ( "temp.wav" )
WinActivate ( "temp.wav" )
Send ( "^e" )
WinWaitActive ( "Save exported file as:" )
Send ( "c:\temp.mp4{Enter}" )
WinWaitClose ( "Progress" )
WinActivate ( "temp.wav" )
Send ( "^w" )
WinWaitClose ( "temp.wav" )
FileCopy ( "C:\temp.mp4" , $CmdLine[2] )
FileDelete ( "C:\temp.mp4" )
FileDelete ( "C:\temp.wav" )

You'll need to download the AutoIt -v3 from here http://www.autoitscript.com/autoit3/downloads.php and run this script through the Aut2exe prog and move the resultant file to <dbpowerampHOME>\Compression\QuickTime M4a (CLI)\QTBatch.exe.

If you haven't installed QuickTime in the default location, edit line 2 of the file to reflect it's location. Also, you'll still need to install the old setup first.

If any of this isn't clear, send me a message...

Tarkus Shakti

Spoon
07-09-2005, 02:21 PM
Can you send the new qtbatch file to me please?

TarkusShakti
07-15-2005, 01:09 PM
Today I installed the new "QuickTime for Windows 7.0.2.63 Public Preview 2" and it broke the script again. They changed the window titling to remove the extention part. Here is a new version which solves this:

FileCopy ( $CmdLine[1] , "C:\temp.wav" )
run ( "c:\Program Files\QuickTime\QuickTimePlayer.exe c:\temp.wav" )
WinWait ( "temp" )
WinActivate ( "temp" )
Send ( "^e" )
WinWaitActive ( "Save exported file as:" )
Sleep ( 250 )
Send ( "c:\temp.mp4{Enter}" )
WinWaitClose ( "Progress" )
WinActivate ( "temp" )
Send ( "^w" )
WinWaitClose ( "temp" )
FileCopy ( "C:\temp.mp4" , $CmdLine[2] )
FileDelete ( "C:\temp.mp4" )
FileDelete ( "C:\temp.wav" )

I've emailed Mr. Spoon the new binary...

Cheers - TS