LeHuynhNam Posted January 8, 2009 Posted January 8, 2009 i want this sentence can be available in my script "This is an example!" but i can't use ", i don't know how to resolve it? Help me!
Valuater Posted January 8, 2009 Posted January 8, 2009 After everything I have seen you do, this should be easy.... lol Maybe... Global $Message = "This is an example!" Do_Function() Func Do_Function() MsgBox(4096, "Message", $Message & " ", 5) EndFunc ;==>Do_Function 8)
jebus495 Posted January 8, 2009 Posted January 8, 2009 i want this sentence can be available in my script "This is an example!"but i can't use ", i don't know how to resolve it? Help me!You need to "double up" the amount of "'s you are using.Here is an example.MsgBox (0, "This is a MsgBox" , """This is an example!""")This will display your desired "This is an example!".If you only wanted it to look like this ' This "is an" example 'Then it would look like this.MsgBox (0, "This is a MsgBox" , "This ""is an"" example!")
KaFu Posted January 8, 2009 Posted January 8, 2009 Quote signs need to be escaped... by quote signs ... MsgBox(0,"","""This is an example!""") 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 (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
LeHuynhNam Posted January 8, 2009 Author Posted January 8, 2009 (edited) oh, thank for helping! if i wanna use this sentence for my gui, like a label? honesty, i wanna add line in a file. Such as $LineAdd &= "$Skin_Folder =""&$var&"""& @CRLF & @CRLF i just want to write this line to file: $Skin_Folder = "D:\designs\program\autoit\Xskin\Skins" and i don't know how to do it! i've try some way but don't have result Edited January 8, 2009 by LeHuynhNam
KaFu Posted January 8, 2009 Posted January 8, 2009 $var = "D:\designs\program\autoit\Xskin\Skins" MsgBox(0,"","$Skin_Folder = """ & $var & """" & @CRLF & @CRLF) 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 (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
LeHuynhNam Posted January 8, 2009 Author Posted January 8, 2009 (edited) Thank you! i did it! I have more question i have file.au3 which has line $1=GUICreate("MsgBox Wizard v.1.0", 440, 540, 100, 100) and i wanna make a script which can change $1 to $a and all the word after the third comma "," have to delete and replace by another! after changing this should be: $a=GUICreate("MsgBox Wizard v.1.0", 440, 540,$something) how can i do? Edited January 8, 2009 by LeHuynhNam
Innovative Posted January 8, 2009 Posted January 8, 2009 StringSplit and StringReplace might be useful in this case.. Search that in the help files.
AlmarM Posted January 8, 2009 Posted January 8, 2009 MsgBox(0,"",'"This is an example!"') I think this would be the best sollution AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.
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