Jump to content

problem with string


Recommended Posts

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!")

:)

Link to comment
Share on other sites

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 by LeHuynhNam

4m848p10.gif 

Link to comment
Share on other sites

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 by LeHuynhNam

4m848p10.gif 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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