Jump to content
Sign in to follow this  
autopilotus

Write text to file using different fonts

Recommended Posts

autopilotus

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.

Share this post


Link to post
Share on other sites
Andre

Hi,

You are indeed an newb :idiot:

A Text File is a "plain" file, so no fonts.........

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites
Doxie

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...

Share this post


Link to post
Share on other sites
Andre

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!

Share this post


Link to post
Share on other sites
trids

Do a search on all forums for HTML (or font ?) by scriptkitty .. who coded a solution for this very question a while back.

:idiot:

Share this post


Link to post
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
Sign in to follow this  

×