AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with parsing a command

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
kimbledon



Joined: 28 Sep 2007
Posts: 26

PostPosted: Sun Oct 28, 2007 9:10 pm    Post subject: Problem with parsing a command Reply with quote

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! Smile
Back to top
View user's profile Send private message
BoBoĻ
Guest





PostPosted: Sun Oct 28, 2007 10:08 pm    Post subject: Reply with quote

Code:
StringSplit, commandparam, command, "
MsgBox % commandparam2
Or ?
Back to top
kimbledon



Joined: 28 Sep 2007
Posts: 26

PostPosted: Sun Oct 28, 2007 10:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
BoBoĻ
Guest





PostPosted: Sun Oct 28, 2007 10:20 pm    Post subject: Reply with quote

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

PostPosted: Sun Oct 28, 2007 10:43 pm    Post subject: Reply with quote

That's true Very Happy
Maybe I should too Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group