Use FindText & AutoHotkey to Skip YouTube ads

In this short video I how to use my version of FindText to easily watch for YouTube ads and skip them.

Here is the code I demonstrated.  You can get my FindText version here.

#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)


 

Speeding-up the FindText / Image function to get quicker results

In previous videos I demonstrated a really cool function which allows you to find text / an image on a screen.  I also had some additional hotkeys that made it easy to click, send text, etc.

I realized that often it the FindText function was taking over 1/2 a second to find the target.  While this is slow in human terms, it is a long time in computer-world.   Narrowing down where you’re searching is a great, easy, way to speed-up the process.  In the below video I demonstrate the comparison and you can download the two files here.

Speeding-up the FindText / Image function to get quicker results