Slartybartfast Posted June 8, 2007 Share Posted June 8, 2007 I need to pass parameters containing quotes to an AutoIt script e.g. /T"New Title" $CmdLine[$i] strips the quotes e.g. /TNew Title Is there a way to avoid this? Do I have to write my own $CmdLineRaw parser, or is there a template available? Link to comment Share on other sites More sharing options...
Armand Posted June 8, 2007 Share Posted June 8, 2007 try using that as parameter: /T '"New Title"' [u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?! Link to comment Share on other sites More sharing options...
MHz Posted June 8, 2007 Share Posted June 8, 2007 Do I have to write my own $CmdLineRaw parser, or is there a template available?Just do your own parsing as you will need to sort the $CMDLINE parsed to the script anyway. Example If $CMDLINE[0] Then For $i = 1 To $CMDLINE[0] $parameter = $CMDLINE[$i] Select Case StringLeft($parameter, 2) = '/T' $title = StringTrimLeft($parameter, 2) If StringInStr($title, ' ') Then $title = '"' & $title & '"' EndIf Case ; next condition ; ........ EndSelect Next EndIf 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