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 

how do I disable a line? using ; at the begining?

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



Joined: 05 Oct 2006
Posts: 476

PostPosted: Sun Apr 22, 2007 11:01 pm    Post subject: how do I disable a line? using ; at the begining? Reply with quote

hello

how do I disable a line? using ; at the begining?

thanks
Back to top
View user's profile Send private message
aCkRiTe



Joined: 21 Jul 2006
Posts: 555

PostPosted: Sun Apr 22, 2007 11:16 pm    Post subject: Re: how do I disable a line? using ; at the begining? Reply with quote

user wrote:
hello

how do I disable a line? using ; at the begining?

thanks


That is correct!
Code:

;MsgBox, You will not see this MsgBox.
MsgBox, You will see this MsgBox.


HTH...
Back to top
View user's profile Send private message
Helpy
Guest





PostPosted: Mon Apr 23, 2007 9:25 am    Post subject: Reply with quote

Or by surrounding it with two lines: one with /*, the other with */. Better for lot of lines.
Or by preceding it by an always false conditional...
Back to top
user



Joined: 05 Oct 2006
Posts: 476

PostPosted: Tue Apr 24, 2007 5:20 pm    Post subject: Reply with quote

Helpy wrote:
Better for lot of lines.


thats what I wanted

Helpy wrote:
Or by surrounding it with two lines: one with /*, the other with */. Better for lot of lines.


thats very very interesting!

you mean like this?:

Code:
/*mycodehere*/


by the way, where is the reference for this?

thanks
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Tue Apr 24, 2007 5:23 pm    Post subject: Reply with quote

user wrote:
you mean like this?:

Code:
/*mycodehere*/



or
Code:

/*
my
multi
line
code
here
*/



user wrote:

by the way, where is the reference for this?


in TFM
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Tue Apr 24, 2007 9:13 pm    Post subject: Reply with quote

user wrote:
you mean like this?:

Code:
/*mycodehere*/
No, opening and closing parts must be on a line of their own, as engunneer shown.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
MsgBox



Joined: 17 Nov 2005
Posts: 181
Location: Leicester, UK

PostPosted: Tue Apr 24, 2007 11:50 pm    Post subject: Reply with quote

This works too, I saw it in a script recently:
Code:
_= Some code

I don't think its documented though.
Back to top
View user's profile Send private message Visit poster's website
user



Joined: 05 Oct 2006
Posts: 476

PostPosted: Wed Apr 25, 2007 12:40 am    Post subject: Reply with quote

MsgBox wrote:
This works too, I saw it in a script recently:
Code:
_= Some code

I don't think its documented though.


does it support multiline code?
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Wed Apr 25, 2007 5:44 am    Post subject: Reply with quote

MsgBox, this is only assigning lines of code to the _ variable (so you can use also #=, like lot of Unix scripts!).
It works, but still consumes CPU and memory, so you better use ;

user, semi-colon can be used to disable multiple lines of code: just put one at the start of each line.
Good editors, like SciTE, allows to select a bunch of lines and with a keystroke you comment them out.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
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