autopilotus Posted December 27, 2004 Share Posted December 27, 2004 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 More sharing options...
Andre Posted December 27, 2004 Share Posted December 27, 2004 Hi, You are indeed an newb 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! Link to comment Share on other sites More sharing options...
Lazycat Posted December 27, 2004 Share Posted December 27, 2004 How can be different fonts in the text file? You should use something that support different fonts, simplest is HTML, but you can try output into RTF (it's syntax simple enough). Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Doxie Posted December 27, 2004 Share Posted December 27, 2004 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 More sharing options...
Andre Posted December 27, 2004 Share Posted December 27, 2004 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 More sharing options...
trids Posted December 28, 2004 Share Posted December 28, 2004 Do a search on all forums for HTML (or font ?) by scriptkitty .. who coded a solution for this very question a while back. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now