Sign in to follow this  
Followers 0
gseller

Putting Special characters in qutes to add to a command.

4 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

evilertoaster & SmOke_N .. That works like a charm! Thanks a bunch..

Share this post


Link to post
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
Sign in to follow this  
Followers 0