Autohokey Continue Code on Next Line
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.
#1
- Posted 13 September 2009 - 03:42 AM
-
Back to top
#2
- Posted 13 September 2009 - 04:08 AM
-
Back to top
#3
- Posted 13 September 2009 - 04:51 AM
-
Back to top
Have you tried `n (linefeed)?
________
Essential Vaaapp Vaporizer
#4
- Posted 13 September 2009 - 05:12 AM
-
Back to top
Example script:
FileAppend, First Line`nSecond Line`nThird Line`nFourth Line, Sample.txt Run, Sample.txt
#5
- Posted 13 September 2009 - 05:42 AM
My small "thanks" to AHK in shape of these dedicated 3d images
-
Back to top
usually use `r `n ( ASCII 13 and 10 )
#6
- Posted 13 September 2009 - 11:23 AM
-
Back to top
i tried 'r and 'n, but it didn't make any files.
#7
- Posted 13 September 2009 - 06:03 PM
-
Back to top
FileAppend, First Line`nSecond Line`nThird Line`nFourth Line, Sample.txt Run, Sample.txt
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:
#8
- Posted 13 September 2009 - 06:20 PM
-
Back to top
FileAppend, First Line`nSecond Line`nThird Line`nFourth Line, Sample.txt Run, Sample.txt
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 :|
#9
- Posted 13 September 2009 - 10:23 PM
-
Back to top
Try this:
MsgBox, First Line`nSecond Line`nThird Line`nFourth Line
Does that display a Message Box with 4 lines? If so, that answers the op.
#10
- Posted 13 September 2009 - 10:39 PM
-
Back to top
i tried 'r and 'n, but it didn't make any files.
` =/= '
#11
- Posted 14 September 2009 - 12:16 AM
-
Back to top
I must be overlooking something very simple, but i try to add a line to the top of the file.
Would be great if someone could tell me how to do that.
#12
- Posted 24 July 2012 - 11:22 AM
-
Back to top
Because there is a problem with autohotkey.net at the moment you can't download the TF library but try again tomorrow via this link <!-- m -->viewtopic.php?t=46195<!-- l -->
#13
- Posted 24 July 2012 - 11:58 AM
-
Back to top
Are you using the single quote ' or the tick `? You want the tick mark, which is shared with the tilda key in the upper left corner of my keyboard.
#14
- Posted 18 September 2012 - 05:19 PM
-
Back to top
Another thing to keep in mind is that, depending on the application you're inserting the text into, if you want to insert multiple lines you may need to put a space in between `r`n and the next `r`n, so they don't get wrapped up into one newline:
MsgBox, Line1`r`n `r`nLine 3
#15
- Posted 11 October 2012 - 10:17 PM
-
Back to top
Source: https://www.autohotkey.com/board/topic/44959-new-line-break-line/
Last active:
0 Response to "Autohokey Continue Code on Next Line"
Post a Comment