Jump to content

Write text to file using different fonts


Recommended Posts

Total newb here. Is there a way to write text to a file, and have each line be a dfferent font? For example:

$file = FileOpen("C:\test.txt", 1)

; Write in Arial Font

FileWriteLine($file, "This is Arial Font")

; Change to Times New Roman Font

FileWriteLine($file, "This is Times New Roman")

$FileClose($file)

Any help would greatly be appreciated.

Link to comment
Share on other sites

I might be a newbie aswell...

But i belive he meant changing font in Notepad.

autopilotus> If you change font in Notepad once, it will be there until you change it again. You can not "lock" a specific text file to use a specific font.

Try this for example:

Open Notepad, change your font, and type something.

Then close Notepad, double click on any other txt file, and you will see that it will have the new font you just changed.

Were ever i lay my script is my home...

Link to comment
Share on other sites

Hi,

I don't think he meant that because he is not sending text to Notepad but using AutoIt to write direct to an text file.

Andre

What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...