AutoHotkey Community

It is currently May 25th, 2012, 2:34 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: April 23rd, 2007, 12:01 am 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
hello

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

thanks


Report this post
Top
 Profile  
Reply with quote  
PostPosted: April 23rd, 2007, 12:16 am 
Offline

Joined: July 21st, 2006, 6:13 am
Posts: 558
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...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 23rd, 2007, 10:25 am 
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...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 24th, 2007, 6:20 pm 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 24th, 2007, 6:23 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
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

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 24th, 2007, 10:13 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
user wrote:
you mean like this?:

Code:
/*mycodehere*/
No, opening and closing parts must be on a line of their own, as engunneer shown.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 12:50 am 
Offline

Joined: November 17th, 2005, 10:14 pm
Posts: 196
Location: Leicester, UK
This works too, I saw it in a script recently:
Code:
_= Some code

I don't think its documented though.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 1:40 am 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 6:44 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher, lblb and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group