Jump to content

Putting Special characters in qutes to add to a command.


Recommended Posts

Hey... Not sure exactly how to ask this one. Is it possible to put special characters in quotes like when adding to a command, like this:

Do
     $msg = GUIGetMsg()
     If $msg = $ok1 Then
         IniWrite("my.ini", "Stmt1", "Param0", """ & GUICtrlRead($user) & "^M"")
         IniWrite("my.ini", "Stmt4", "Param0", """ & GUICtrlRead($pass) & "^M"")
         Run("notepad.exe my.ini")
         Exit
     EndIf

Here I want to add a quotation mark to the begining of key value. I know it looks like bad coding and is! I just need to somehow add this to the input result in my ini file.

Edited by gesller
Link to comment
Share on other sites

  • Moderators

MsgBox(64, 'Info', '"Double Quote Example 1"' & @CRLF & """Double Quote Example 2""" & @CRLF & Chr(34) & 'Double Quote Example 3' & Chr(34))

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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...