Jump to content

Recommended Posts

Posted (edited)

I need to make my program write .txt file and the lines should have selected font and size can some one help me out?

FileWrite("patient"&$numberofpatient&".txt","")
 
$hi=FileWriteLine("patient"&$numberofpatient&".txt","hello")
 
 
how i can make hello in variable  $hi have font arial,bold and size 20?
 
and would be nice if someone can add lines to print that txt
Edited by nightcore2828
Posted

Text files don't have font and style settings, you'd need something like an RTF file instead.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

  Reveal hidden contents

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted (edited)

start reading help file

search for this function: _GUICtrlRichEdit_Create 

and all others _GUICtrlRichEdit_......

ps.

there is lot of examples

Edited by mlipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 9/15/2013 at 7:04 PM, mlipok said:

start reading help file

search for this function: _GUICtrlRichEdit_Create 

and all others _GUICtrlRichEdit_......

ps.

there is lot of examples

yeah i am looking around this forum aswell :)

but since the forum is messed up pretty much  i can't find anything useful :(

and stil lsome example lines how to give the font to hello in $hi would be nice :)

Edited by nightcore2828
Posted
  On 9/15/2013 at 7:10 PM, FireFox said:

I didn't know the helpfile was a forum...  :think:

same here and i think it still is not.

but if you don't know what you need to look for in help file you can't look it

Posted (edited)

i told you what you need to study in helpfile

 

EDIT:

forum is what it is , remember this is internet, any body can post any kind of thread

helpfile is the essence of the minds, of the creators.

 
Always start from reading HelpFile.
This way you will not waste your time and someone else's.
Edited by mlipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Don't try to race in a Grand Prix, until you've learnt to drive a car.

I suggest you do some of the Tutorials available, both here in the Wiki and in the Examples section.

There are also many examples in your AutoIt install folder, plus some basics in the Help file.

Once you grasp the basics, then your next steps to what you want will be easier, and any time you need help along your journey, just post your code here, and we will give you any necessary assistance or advice.

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

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
  • Recently Browsing   0 members

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