CoordMode, Mouse, Relative SetTitleMatchMode, 2 ClipWait Path = %Clipboard% StringRight, Extension, Path, 4 If Extension = .IFO { StringGetPos, FolderCut1, Path, \, R StringLeft, PathNoFile, Path, FolderCut1 StringGetPos, FolderCut2, PathNoFile, \, R FolderCut2 += 1 FolderCut3 := FolderCut1 - FolderCut2 StringRight, Folder, PathNoFile, FolderCut3 IfWinExist, SubRip { WinActivate, SubRip,,3 } Else { ;//////////Edit the following line Run \SubRip.exe WinWaitActive, SubRip,,3 SendInput {Alt Down} Sleep 200 SendInput c Sleep 200 SendInput o Sleep 200 SendInput {Alt Up} WinWaitActive, SubRip Sleep 1000 } WinWaitActive, SubRip Click 25,63 WinWaitActive, What to do?,,3 Click 592,242 Click 443,194 Click 266,82 WinWaitActive, Open,,3 SendInput ^v{Enter} WinWaitActive, Information,,3 Click 133,106 WinWaitActive, What to do?,,3 Click 228,52 Input, AudioStream, L2 SendInput %AudioStream%{Enter} Sleep 200 Click 269,352 MsgBox WinActivate, Subtitles Click 351,64 WinActivate, Post OCR Correction,,3 Click 143,428 WinActivate, Subtitles,,3 Click 456,68 Sleep 1000 IfWinActive, Confirm { Click 107,102 } Else { Click 654,66 } WinWaitActive, Save As SendInput %Folder%.English.%AudioStream% Click 520,366 Sleep 1000 IfWinActive, Warning WinWaitClose, Warning WinClose, Subtitles ;//////////Edit the following line Run \ChapterXtractor.exe "%Path%" "%PathNoFile%\Chapters.txt" -p1 } Clipboard = reload