AutoHotkey Community

It is currently May 26th, 2012, 2:57 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Conditional Compiling
PostPosted: June 11th, 2005, 3:52 pm 
Offline

Joined: June 2nd, 2005, 8:25 am
Posts: 48
Location: Moscow
subj


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 12th, 2005, 12:36 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I've some vague idea of what this is, but some extra details would be good.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 14th, 2005, 9:00 am 
Offline

Joined: June 2nd, 2005, 8:25 am
Posts: 48
Location: Moscow
I mean smth. like a
Code:
#IF SpecialCondition
... ; theese lines will be compiled in case of SpecialCondition = True
...
#ELSE
... ; SpecialCondition = False
...
#ENDIF


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 14th, 2005, 12:41 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2542
You may already know this but this can currently be done by using FileAppend to build a script that you would like to compile then compile it using Ahk2Exe.exe with a Run command...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 14th, 2005, 12:49 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thanks for clarifying. I can see that this is definitely useful, so it will be tentatively planned for the future.

However, it might be a long time in coming because it seems likely that fewer than 1% of users would use it.

In the meantime, one possibility is to have a helper script that writes some other script via FileAppend. A continuation section can make this easier:
Code:
if IncludeExtraFeatures
{
    FileAppend,
    (
Gosub ExtraFeatures
MsgBox Extra features
; ... etc.
    ), My Script.ahk
}


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 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