gseller Posted July 10, 2007 Share Posted July 10, 2007 (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 July 10, 2007 by gesller Link to comment Share on other sites More sharing options...
evilertoaster Posted July 10, 2007 Share Posted July 10, 2007 IniWrite("my.ini", "Stmt1", "Param0", '"' & GUICtrlRead($user) & '^M"') IniWrite("my.ini", "Stmt4", "Param0", '"' & GUICtrlRead($pass) & '^M"')? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 10, 2007 Moderators Share Posted July 10, 2007 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 More sharing options...
gseller Posted July 11, 2007 Author Share Posted July 11, 2007 evilertoaster & SmOke_N .. That works like a charm! Thanks a bunch.. Link to comment Share on other sites More sharing options...
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