Skip to content

Instantly share code, notes, and snippets.

@dtgm
Created May 24, 2016 01:06
Show Gist options
  • Save dtgm/9ac59fd8e5fb4c1e96c1cdb1f8330620 to your computer and use it in GitHub Desktop.
Save dtgm/9ac59fd8e5fb4c1e96c1cdb1f8330620 to your computer and use it in GitHub Desktop.
; default environment
DetectHiddenWindows, off
SetControlDelay, 20
; modified environment
#NoEnv
#NoTrayIcon
DetectHiddenText, off
SetTitleMatchMode, 2 ;contains
; variables
winTitle = Finish Installing Any Video Converter Free
WinWait, %winTitle%, , 120
WinActivate
CheckAddressBar()
CheckAddressBar()
{
KeyWait Control
KeyWait Shift
BackupClipbrd := Clipboard
Sleep 50
Send !d ;Select the url
Sleep 150
Send ^c ;Copy the url
ClipWait 0.1
If ERRORLEVEL
{
Clipboard := BackupClipbrd
Return
}
If Clipboard Contains avclabs.com/any-video-converter-special.php
Send, ^w
Clipboard := BackupClipbrd
}
ExitApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment