Guest User

BatchSubtitleDownloader.ahk

a guest
Jul 15th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Esc::
  2. BreakLoop = 1
  3. return
  4.  
  5. ^+s::
  6. InputBox, Episodes, How Many Episodes?, How Many Episodes?`nScript will execute when you press OK.`nPress ESC key to stop execution early.`nDo NOT move mouse while script is executing!
  7. BreakLoop = 0
  8. WinActivate, Kodi
  9. WinWaitActive, Kodi
  10. MouseMove 0,0,0
  11. Sleep 500
  12. Send {PgUp}
  13. Tooltip, Processing...Press ESC to Cancel
  14. Loop, %Episodes%
  15. {
  16.     if (BreakLoop = 1)
  17.         break
  18.     Send {Down}
  19.     Sleep 100
  20.     Send {Enter}
  21.     Sleep 10000
  22. }
  23. Tooltip
  24. return
Add Comment
Please, Sign In to add comment