michcio Posted December 8, 2008 Posted December 8, 2008 hi! How do I make new line while setting text with ControlSetText. I mean how do I set this text into a textBox: hi there new line between hi and there. How do I do? cheers michcio
KaFu Posted December 8, 2008 Posted December 8, 2008 "hi" & @crlf & "there" OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
michcio Posted December 8, 2008 Author Posted December 8, 2008 "hi" & @crlf & "there"thanks works perfectly! (was tring something like "hi \n there" )thanks!!
michcio Posted December 8, 2008 Author Posted December 8, 2008 (edited) btw I have a loong line in my code right now: ControlSetText("Edit VM Commands","","ThunderRT6TextBox4","SetSTN subpicture=5:OFF" & @crlf & "Mov GPRM4, 1" & @crlf & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=1:ON" & @crlf & "Mov GPRM4, 2" & @crlf & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=2:ON" & @crlf & "Mov GPRM4, 3" & @crlf & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=3:ON" & @crlf & "Mov GPRM4, 4" & @crlf & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=4") is there a way to jump down a line in this command as well so this line isn't just one but more (but still same function)? thankfull for answers michcio Edited December 8, 2008 by michcio
toonboon Posted December 8, 2008 Posted December 8, 2008 Well, not triple posting should help. And what you are asking for is relatively easy: ControlSetText("Edit VM Commands","","ThunderRT6TextBox4","SetSTN subpicture=5:OFF" & @crlf _ & "Mov GPRM4, 1" & @crlf _ & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=1:ON" & @crlf _ & "Mov GPRM4, 2" & @crlf _ & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=2:ON" & @crlf _ & "Mov GPRM4, 3" & @crlf _ & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=3:ON" & @crlf _ & "Mov GPRM4, 4" & @crlf _ & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=4") [right]~What can I say, I'm a Simplistic person[/right]
michcio Posted December 8, 2008 Author Posted December 8, 2008 ah I use _ thanks!. sry I edited my post wrong before but have erased it now
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