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 

Comma after a command: necessary?

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



Joined: 17 Feb 2005
Posts: 283
Location: Hungary, Budapest

PostPosted: Wed Feb 23, 2005 1:37 pm    Post subject: Comma after a command: necessary? Reply with quote

As far as i can tell, there is no difference between these two:
Code:
Send hi
or
Code:
Send, hi
will be there a problem if i omit the comma?
_________________
Is there another word for synonym?
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Feb 23, 2005 2:34 pm    Post subject: Reply with quote

There's a tip in the documentation somewhere that you can omit the first comma of any command. There might be a few rare cases where this can't be done, but you would get a syntax error to alert you. For example, in the following you should insert a comma to activate a window titled "= 555":

WinActivate = 555 ; Assigns 555 to the variable "WinActivate".
Back to top
View user's profile Send private message Send e-mail
SanskritFritz



Joined: 17 Feb 2005
Posts: 283
Location: Hungary, Budapest

PostPosted: Wed Feb 23, 2005 4:22 pm    Post subject: Reply with quote

Thanks for your help!
_________________
Is there another word for synonym?
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