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
;*******************************************************
;**************************************
;~ gui,+AlwaysOnTop
gui, font, S12 ;Change font size to 12
Gui, Add, GroupBox, x0 w460 h150, Search ;add a groupbox
gui, Add, Checkbox, x20 y30 checked1 vahk, AutoHotkey.com ;first checkbox and move down / over a bit
gui, Add, Checkbox, checked0 vstack, StackOverflow.com
;*******************************************************
; 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
;**************************************
!p::ToggleVisibility("Pushbullet Pro") ;Alt+P will run
;~ WindowTitle:="Pushbullet Pro"
;~ ToggleVisibility(WindowTitle) ;Call the function
return
@JoeGlines
JoeGlines / HellBent- overlaying images.ahk
Created October 22, 2021 17:24
from our live call on 10/22/2021- Hellbent's demo
#Include <My Altered GDIP lib> ;update this path to your GDI library
#SingleInstance, Force
Gdip_StartUp()
image1 := Gdip_CreateBitmapFromFile("C:\Users\Hellbent\Desktop\AHK Tools\Color Picker Mini\Screen Shots\20211021210744.png")
image2 := Gdip_CreateBitmapFromFile("C:\Users\Hellbent\Desktop\AHK Tools\Color Picker Mini\Screen Shots\20211022094124.png")
pBitmap := Gdip_CreateBitmap( 400 , 400 ) , G := Gdip_GraphicsFromImage( pBitmap ) , Gdip_SetSmoothingMode( G , 2 )
Gui Color, 1a1a1a
@JoeGlines
JoeGlines / imageComparison.ahk
Created October 22, 2021 15:52
Jackie Sztuk method for image comparison
If !pToken := Gdip_Startup()
{
MsgBox, 48, gdiplus error!, Gdiplus failed to start. Please ensure you have gdiplus on your system
ExitApp
}
FileSelectFile, File1, , , Select File 1
FileSelectFolder, folder1,
;~ FileSelectFile, File2, , , Select File 2
@JoeGlines
JoeGlines / long press 3 secs to sleep.ahk
Created October 8, 2021 15:10
longpess escape for 3 seconds to go to sleep
#SingleInstance,Force
;~ http://www.autohotkey.com/board/topic/80697-long-keypress-hotkeys-wo-modifiers/
~$Esc:: ; Long press (> 0.5 sec) on Esc closes window
KeyWait, Escape, T3 ; Wait no more than 0.5 sec for key release (also suppress auto-repeat)
If ErrorLevel ; timeout, so long press
PostMessage, 0x112, 0xF060,,, A ;Use PostMessage to close window
Return
#SingleInstance,Force
#NoEnv
;********************Fix stupid Windows clipboard***********************************
#IfWinActive ahk_class Shell_LightDismissOverlay
enter:: ;when hit enter key
Send, {space} ;send the space key
return ;Stop from moving forward
#SingleInstance, Force
;**************************************
Gui, +AlwaysOnTop
Gui, Color, cbaac86
Gui, Add, Text, x21 y7 w124, Customer
Gui, Add, Text, x28 y36 w124, Number
Gui, Add, Text, x38 y64 w124, Expiry
Gui, Add, Text, x45 y93 w124, Sec
Gui, Add, Text, x40 y122 w124, Name
@JoeGlines
JoeGlines / in list.ahk
Last active September 12, 2021 23:42
Put items in a format for in-list query
;*******************************************************
; 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
;***********save clipboard to retore later*******************
Store:=ClipboardAll ;Store full version of Clipboard
clipboard = ; Empty the clipboard
SendInput, ^c ;changd from Send 11/23