Created
October 14, 2025 11:33
-
-
Save JoeGlines/0a09cefdfff4a47b32ceaaa8fb574f08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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