https://github.com/joshuacc/chalk.ahk
Usage
Chalk builds colorized strings using property and method chaining, which is easy both to read and to write.
Example
Code: Select all
; Include chalk.ahk. The path may be different on your system.
#Include, %A_ScriptDir%\ahkpm-modules\github.com\joshuacc\chalk.ahk\chalk.ahk
; Make a terminal styled and colored string
loudWarning := chalk.bold.red.underline("This is not a drill!")
; Output the string to stdOut
FileAppend, %loudWarning%, *
; Make another string
quietCorrection := chalk.cyan("`r`nManagement sincerely apologizes. This is actually a drill.`r`n")
; Output the string to stdOut
FileAppend, %quietCorrection%, *
For more details, see the GitHub link above.