AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

new line / break line

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
im new hto ahk
Guest





PostPosted: Sun Sep 13, 2009 3:42 am    Post subject: new line / break line Reply with quote

hi, im a new ahk coder. I love ahk's simplicity!


I have a question:
How do you make a new line / break line?

I was using FileAppend, and wanted the text to break into several lines.
Back to top
royboy
Guest





PostPosted: Sun Sep 13, 2009 4:08 am    Post subject: Line break Reply with quote

`r

is a return
Back to top
im new here
Guest





PostPosted: Sun Sep 13, 2009 4:51 am    Post subject: Re: Line break Reply with quote

royboy wrote:
`r

is a return


didn't work Neutral
Back to top
lilalurl.T32



Joined: 17 May 2007
Posts: 391
Location: Titan

PostPosted: Sun Sep 13, 2009 5:12 am    Post subject: Reply with quote

Have you tried `n (linefeed)?
________
Essential Vaaapp Vaporizer


Last edited by lilalurl.T32 on Sun Mar 13, 2011 6:44 am; edited 1 time in total
Back to top
View user's profile Send private message
sosaited



Joined: 24 Feb 2005
Posts: 278

PostPosted: Sun Sep 13, 2009 5:42 am    Post subject: Reply with quote

Example script:

Code:
FileAppend, First Line`nSecond Line`nThird Line`nFourth Line, Sample.txt
Run, Sample.txt

_________________
My small "thanks" to AHK in shape of these dedicated 3d images
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 2212
Location: switzerland

PostPosted: Sun Sep 13, 2009 11:23 am    Post subject: Reply with quote

usually use `r `n ( ASCII 13 and 10 )
Back to top
View user's profile Send private message
im new to ahk
Guest





PostPosted: Sun Sep 13, 2009 6:03 pm    Post subject: Reply with quote

i tried 'r and 'n, but it didn't make any files.
Back to top
jethrow



Joined: 24 May 2009
Posts: 1907
Location: Iowa, USA

PostPosted: Sun Sep 13, 2009 6:20 pm    Post subject: Reply with quote

sosaited wrote:
Example script:

Code:
FileAppend, First Line`nSecond Line`nThird Line`nFourth Line, Sample.txt
Run, Sample.txt


im new to ahk wrote:
i tried 'r and 'n, but it didn't make any files.


Try putting SetWorkingDir %A_ScriptDir% in sosaited's example, at the top of the script. Also, 'n and `n are not the same thing. Wink
_________________
Very Happy - in case I forgot to smile
Basic Webpage Controls
COM Object Reference
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
im new to ahk
Guest





PostPosted: Sun Sep 13, 2009 10:23 pm    Post subject: Reply with quote

jethrow wrote:
sosaited wrote:
Example script:

Code:
FileAppend, First Line`nSecond Line`nThird Line`nFourth Line, Sample.txt
Run, Sample.txt


im new to ahk wrote:
i tried 'r and 'n, but it didn't make any files.


Try putting SetWorkingDir %A_ScriptDir% in sosaited's example, at the top of the script. Also, 'n and `n are not the same thing. Wink


Thanks for the tips, but still didn't work Neutral
Back to top
jethrow



Joined: 24 May 2009
Posts: 1907
Location: Iowa, USA

PostPosted: Sun Sep 13, 2009 10:39 pm    Post subject: Reply with quote

Try this:
Code:
MsgBox, First Line`nSecond Line`nThird Line`nFourth Line

Does that display a Message Box with 4 lines? If so, that answers the op.
_________________
Very Happy - in case I forgot to smile
Basic Webpage Controls
COM Object Reference
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
purloinedheart



Joined: 04 Apr 2008
Posts: 537
Location: Canada

PostPosted: Mon Sep 14, 2009 12:16 am    Post subject: Reply with quote

im new to ahk wrote:
i tried 'r and 'n, but it didn't make any files.


` =/= '
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group