Skip to content

Instantly share code, notes, and snippets.

;*******************************************************
; 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
;*******************************************************
Text:="|<YouTube Skip Ads>*89$62.zzzzzzzzzzy7btzzyTyTzStyTzzbzbzbaTzzzkztztzb9cTwDUQDTtiNnzPnaNlyHaQzaRtjT7VtbjtbSNzyMSNvyxrb3zqHaSz0BtyNxatbDrvSPrSNaNnxynaRsCQa1yTa5kzzzzbzzzzzzzzztzzzzzzzzzyTzzzzzs"
loop { ;keep looping over
Sleep,500 ;sleep for 1/2 a second
ok:=FindText(0,0,150000,150000,0,0,Text) ;See if can find the image
if Ok ;if it is found, do the next line
FindText_Control_Click(Ok,X_Adj:=0,Y_Adj:=0,ahkEXE:="chrome.exe") ;Send control click to the position (note, doesn't move mouse)
; Want a clear path for learning AutoHotkey? Go to https://the-Automator.com/Learn
; https://www.autohotkey.com/docs/v2/lib/_HotIf.htm
#SingleInstance
#Requires Autohotkey v2.0+
#HotIf MouseIsOver("ahk_class Shell_TrayWnd")
WheelUp::Send "{Volume_Up}"
WheelDown::Send "{Volume_Down}"
MouseIsOver(WinTitle) {
;~ ~AppsKey & h::Run Excel.exe C:\Users\Joe\Dropbox\diet.xlsx ;diet
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey courses.
;They're structured in a way to make learning AHK EASY: https://the-Automator.com/Learn
;*******************************************************
;~ #Include <default_Settings>
#Requires AutoHotkey v1.1.33+
;**************************************
#SingleInstance force
#Requires AutoHotkey v1.1.36+ ; prefer 64-Bit
@JoeGlines
JoeGlines / Select word and send to Notepad.ahk
Created September 12, 2023 12:55
Simple script to select a world and send it, via the clipboard, to Notepad. Then restore the clipbaord
/*
* ============================================================================ *
* Want a clear path for learning AutoHotkey? *
* Take a look at our AutoHotkey courses here: the-Automator.com/Learn *
* They're structured in a way to make learning AHK EASY *
* And come with a 200% moneyback guarantee so you have NOTHING to risk! *
* ============================================================================ *
*/
#SingleInstance
@JoeGlines
JoeGlines / Run Windows app with AHK v1.ahk
Created January 14, 2024 21:11
How to run Windows Apps with AutoHotkey v1
;*******************************************************
; Want a clear path for Discovering AutoHotkey; Take a look at our AutoHotkey courses.
;They"re structured in a way to make learning AHK EASY: https://the-Automator.com/Discover
;*******************************************************
#Include <default_Settings>
#Requires AutoHotkey v1.1.33+
;**************************************
runApp("Paint") ;this calls the below function and will launch the named app
runApp("WordPad") ;this calls the below function and will launch the named app
return
@JoeGlines
JoeGlines / Run Windows App-v2.ahk
Created January 14, 2024 21:10
How to launch Windows apps with AHK v2
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey courses.
;They"re structured in a way to make learning AHK EASY: https://the-Automator.com/Discover
;*******************************************************
#SingleInstance
#Requires Autohotkey v2.0+
runApp('Spotify') ;this will launch Spotify
runApp(appName) { ; https://www.autohotkey.com/boards/viewtopic.php?p=438517#p438517
;*******************************************************
; 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
#NoEnv
SetBatchLines -1 ;run as fast as possible
;~ DetectHiddenWindows, On
;~ ListLines On ;on helps debug a script
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
@JoeGlines
JoeGlines / Write Custom Sales emails.ahk
Last active January 14, 2024 08:52
How to write custom sales emails with AutoHotkey
;*******************************************************
; 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
^r::Reload ;control R will reload
^e:: ;Control e will trigger it
XL:=XL_Handle(1)
First_RWSL := XL.Selection.Row ;Identifies first row selected
Loops:=XL.Selection.Rows.Count ;returns number of rows selected
;*******************************************************
; 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
;*******************************************************
;~ #Include <default_Settings>
;**************************************
#SingleInstance,Force
SetBatchLines -1
SetWorkingDir %A_ScriptDir%
;~ Menu, tray, icon, B:\Progs\AutoHotkey_L\Icons\Progs\pdf.ico