There is a program hdtv2mpeg. It repackages mpeg from transport stream to the program stream, but there is no butch. It is very necessary for this script. He began to write, but was stuck on the fact that the tab key does not work. What can I do? Where am I wrong? M2t files opens in HDTVtoMPEG2 by default. But the program is open and nothing happens. If I enter in TAB - 8 times, Enter, ALT+F4 manually - works.
Run("C:\WINDOWS\EXPLORER.EXE /n,/e,L:\FINAL CUT\FCPcapture\1")
WinWaitActive("")
Send("{RIGHT}{LEFT}{ENTER}")
WinWaitActive("[CLASS:HDTVtoMPEG2]", "",5)
SendKeepActive("{TAB 8}""{ENTER}")
WinWait("300")
Send("{ALTDOWN}{F4}{ALTUP}")
WinWaitActive("[CLASS:EXPLORER]", "",5)
#WinWaitActive("C:\WINDOWS\EXPLORER.EXE /n,/e,L:\FINAL CUT\FCPcapture\1")
Send("{DELETE}{ENTER}")
Send("{CTRLDOWN}w{CTRLUP}")