Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created April 24, 2021 13:07
Show Gist options
  • Save JoeGlines/15f56455aeda1f96409648ee8da04712 to your computer and use it in GitHub Desktop.
Save JoeGlines/15f56455aeda1f96409648ee8da04712 to your computer and use it in GitHub Desktop.
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY
; Right now you can get a coupon code here: https://the-Automator.com/Learn
;*******************************************************
#SingleInstance,Force
SetBatchLines,-1
Text:="|<Skip YouTube Ad>*63$65.zzzzzzzzzzzzzzzzzzzzzzzwzvzzzzzzb1tzXzzzlzz81nzzzzzXzyHlbzzzzzLzwDnD6t3zwbw8TyQxk3ztDk2DwnvXXzrT763t7rDbzCSTD1mTiTDyQwyTlUzQyTtwtwznAytwzk1nsTaQxntzU3bkSAtvXXyTn740ttr0Dwzb0C3ntiEznzb2Tzzzwzzzzzzzzzztzzzzzzzzzznzzzzzzzzzzbzzzzzzzzzzzzzzzzs"
While !Ok {
ok:=FindText(0,0,150000,150000,0,0,Text)
Sleep, 100
If ! WinExist("ahk_class Chrome_WidgetWin_1") ;Close if no Chrome window
ExitApp
}
FindText_Left_Click(Ok,X_Adj:=0,Y_Adj:=0,MoveBack:=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment