Works perfectly.
EXCEPT...it only works on one file. And I would like it to work "universally". I suspect what needs to be changed is the name of the Window which is now "Sony Sound Forge 7.0 - [Japanese I - Lesson 5*]"
Obviously the Japanese file in the brackets needs to be changed to accept whatever file is open in Sound Forge. How does one do that? (And by the way--what is that asterisk after Lesson 5* for?)
Here's the program which DOES WORK, but only on Lesson 5 (as recorded by AutoScriptWriter, then manipulated after spending an hour and a half scratching my head and trying different things):
;EXTRACTS THE AUDIO REGIONS VIA SOUND FORGE WinWait, Sony Sound Forge 7.0 - [Japanese I - Lesson 05 *], IfWinNotActive, Sony Sound Forge - [Japanese I - Lesson 05 *], , WinActivate, Sony Sound Forge 7.0 - [Japanese I - Lesson 05 *], WinWaitActive, Sony Sound Forge 7.0 - [Japanese I - Lesson 05 *], MouseClick, left, 158, 36 Sleep, 100 WinWait, Sony Sound Forge 7.0, IfWinNotActive, Sony Sound Forge 7.0, , WinActivate, Sony Sound Forge 7.0, WinWaitActive, Sony Sound Forge 7.0, MouseClick, left, 299, 145 Sleep, 100 WinWait, Sony Sound Forge 7.0 - [Japanese I - Lesson 05 *], IfWinNotActive, Sony Sound Forge 7.0 - [Japanese I - Lesson 05 *], , WinActivate, Sony Sound Forge 7.0 - [Japanese I - Lesson 05 *], WinWaitActive, Sony Sound Forge 7.0 - [Japanese I - Lesson 05 *], MouseClick, left, 361, 12 Sleep, 100 Send, {ALTDOWN}t{ALTUP}x{ENTER} WinWait, Sony Sound Forge 7.0, IfWinNotActive, Sony Sound Forge 7.0, , WinActivate, Sony Sound Forge 7.0, WinWaitActive, Sony Sound Forge 7.0, Sleep, 15000 ;CONVERTS WAV FILES TO MP3 VIA CDex WinWait, CDex Version 1.51, IfWinNotActive, CDex Version 1.51, , WinActivate, CDex Version 1.51, WinWaitActive, CDex Version 1.51, MouseClick, left, 122, 15 Sleep, 100 MouseClick, left, 115, 38 MouseClick, left, 115, 38 Sleep, 100 MouseClick, left, 142, 156 MouseClick, left, 142, 156 Sleep, 100 WinWait, Open, IfWinNotActive, Open, , WinActivate, Open, WinWaitActive, Open, MouseClick, left, 176, 341 MouseClick, left, 176, 341 Sleep, 100 MouseClick, left, 329, 343 Sleep, 100
Thanks in advance for any help!
Jerry
[Title edited. Please write descriptive titles for your topics. ~jaco0646]