I am trying to have my script close YoutubeDLG upon complete.
Code: Select all
^PgDn::
run, C:\Program Files (x86)\YoutubeDLG\youtube-dl-gui.exe
Sleep 1500
Send, ^v
Sleep 100
Send, %A_Tab%
Send, {Enter}
; NEED LINE HERE TO DETECT WINDOW TITLE 'Info' (http://i.imgur.com/BA7Inoy.jpg)
process close, youtube-dl-gui.exe ; only if Window Title 'Info' Detected
return