How to change font color?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Rayj00
Posts: 2
Joined: 21 Jul 2017, 11:34

How to change font color?

21 Jul 2017, 17:44

I am a newbie with AHK so have mercy on me! :)

Anyway, I have this script below that I use to add the date and time to a video stream. Works great but how do I change the font characteristics?

Code: Select all

date ; write current date and time to text file

#persistent

sleepTime := 1000
path := "C:\Users\Johnny\Desktop\time1.txt"

SetTimer, WriteTime, %sleepTime%

WriteTime:
  content := ""
  FormatTime, content, , yyyy-MM-dd hh:mm:ss
  file := FileOpen(path, "w")
  file.Write(content)
  file.Close()
  ; MsgBox, %content%
return
Appreciate your comments!

Ray
User avatar
Masonjar13
Posts: 1555
Joined: 20 Jul 2014, 10:16
Location: Не Россия
Contact:

Re: How to change font color?

21 Jul 2017, 17:57

You can't. Plain text files do not support superfluous styling. You could write it as an rtf, but I don't personally know the file format.
OS: Windows 10 Pro | Editor: Notepad++
My Personal Function Library | Old Build - New Build

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Dobbythenerd1, Google [Bot] and 322 guests