Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created October 14, 2025 11:33
Show Gist options
  • Save JoeGlines/0a09cefdfff4a47b32ceaaa8fb574f08 to your computer and use it in GitHub Desktop.
Save JoeGlines/0a09cefdfff4a47b32ceaaa8fb574f08 to your computer and use it in GitHub Desktop.
#Requires AutoHotkey v2.0.2+
#SingleInstance Force
; Just assign and go
userName := "Bob"
userAge := 25
; Same variable, different types? No problem!
score := 100
score := "high" ; Totally fine in AHK
score := [1, 2, 3] ; Also fine!
; AHK converts types on the fly
result := "The answer is " . 42 ; String concatenation
MsgBox(result) ; Shows: "The answer is 42"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment