Batch WAV to MP4 Conversions
My program simulates a user who is working the buttons, menus, and entering file names of the files to convert when prompted. It uses the windows API to send event messages to QT. It is quite kludgy; but I’ve converted over 4000 files with it so far, and it gets the job done.
When you run this, it brings up QT, gets a list of files to convert from a pre-arranged directory, then for each file, it generates events and sends them to the QT main window as follows:
For each file to convert…
   Bring up the file menu (by sending an ALT-F to QT).
   Choose the Open menu item (by sending an ‘O’ key down event to QT, followed by an ‘O’ key-up event.
   In the resulting file browse dialog box that QT brings up in response to this, send the keystrokes to QT that corresponds to the file path.
   Then, send an Enter key stroke (akin to pressing the OK button in the file browser dialog. This loads the file into QT.
   Next, you export the file by sending the appropriate keystrokes to the QT main window. The actual steps here are numerous, so I won’t detail them here.
End for
Basically, the program acts like an end user to QT.
You understand now?
Â
Tom