| View previous topic :: View next topic |
| Author |
Message |
kimbledon
Joined: 28 Sep 2007 Posts: 26
|
Posted: Sun Oct 28, 2007 9:10 pm Post subject: Problem with parsing a command |
|
|
When I have a command like this:
command = WindowHide "My Documents" 7 9
How could I make the program to realize that "My Documents" is the first parameter
If I use:
StringSplit, commandparam, command, %A_Space%
It would make it:
commandparam2 = "My
So how could I make the program know that when text is enclosed with "
It would read the text between " " signs to variable
Thanks for your help!  |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Sun Oct 28, 2007 10:08 pm Post subject: |
|
|
| Code: | StringSplit, commandparam, command, "
MsgBox % commandparam2 | Or ? |
|
| Back to top |
|
 |
kimbledon
Joined: 28 Sep 2007 Posts: 26
|
Posted: Sun Oct 28, 2007 10:13 pm Post subject: |
|
|
In that case I shold use " marks in every parameter :/
If it could be somehow combined with the parsing with %A_Space% |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Sun Oct 28, 2007 10:20 pm Post subject: |
|
|
Well, its kinda standard to use one specific delimiter to separate command line parameters eg.:
my.exe /parameter /parameter /? /...
my.exe --parameter --parameter --parameter --help --... |
|
| Back to top |
|
 |
kimbledon
Joined: 28 Sep 2007 Posts: 26
|
Posted: Sun Oct 28, 2007 10:43 pm Post subject: |
|
|
That's true
Maybe I should too  |
|
| Back to top |
|
 |
|