AutoHotkey Community

It is currently May 27th, 2012, 12:29 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 

Do the benefits of having a new .ahi extension for #include files outweigh the costs?
Yes, I prefer having two extensions available.
No, I prefer having only the single .ahk extension.
No preference
Other
You may select 1 option

View results
Author Message
PostPosted: June 16th, 2005, 9:05 am 
Offline

Joined: June 2nd, 2005, 8:25 am
Posts: 48
Location: Moscow
It would be better if files regarding in #Include will have their own special extension (e.g. ".ahi") and a respective icon.
Then including files will not mix with main script files in the same directory.


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

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
This has been suggested before but adding a new extension has a lot of drawbacks that seem to outweigh the benefits:

1) Another icon and filetype must be registered when the program is installed. This adds complexity and size to the installer.

2) Since the number of three-letter extensions is limited, a program that uses more than one without good reason is probably frowned upon.

3) Editor add-ons would all have to be changed to recognize both .ahk and .ahi as script files subject to syntax highlighting. Similarly, scripts such as Intellisense would have to be changed to recognize both extensions.

Although I'm opposed to the idea, I've added a poll to this topic to gauge interest.

If anyone knows other costs or benefits, please post them.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2005, 5:15 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
I said no preference for my point of view, but it's allways the same, if there is a high cost in terms of efforts for a little benefit, it is probably better to give the high priority to other things...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2005, 5:22 pm 
Offline

Joined: June 2nd, 2005, 8:25 am
Posts: 48
Location: Moscow
The ultimate goal is not to enlarge the number of extensions and icons, but to separate executable scripts from library sources. Another way might be to provide
Code:
#Include DirName

directive allowing to store all library .ahk-files in separate DirName directory.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2005, 7:58 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
This capability has been added in today's update. If it gives you any problems, please let me know.

Thanks for all your suggestions.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: June 17th, 2005, 4:17 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
Dmitry wrote:
It would be better if files regarding in #Include will have their own special extension (e.g. ".ahi") and a respective icon.
Then including files will not mix with main script files in the same directory.
Why not just name them with a different extension on your PC? Files to be included don't currently have to end in .ahk

As these included files wouldn't typically need to be associated with a particular application it seems unnecessary IMO to associate a specific extension with them that might conflict with another application on someone's PC.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: June 17th, 2005, 12:41 pm 
Offline

Joined: June 9th, 2005, 8:27 am
Posts: 31
Location: Germany near Cologne
corrupt wrote:
Why not just name them with a different extension on your PC?


I use the construction: "inc_<name>.ahk" which marks the files as includeble and gives me the option to search in all *.AHK for some text.

Having the option for a special INC-directory is great.

*************************

AND let me suggest parameters for the include (as we just talk about changes):
Code:
#Include inc_file.ahk, PARA1, PARA2
...
/* Include file (with an example for PARA1):
 */
SetTimer lbMyTimer, %PARA1%

which could replace my current construction and the knowledge of the name used in the include file:
Code:
MyTimer_Interval = 1000
#Include inc_file.ahk
...
/* Include file:
 */
SetTimer lbMyTimer, %MyTimer_Interval%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2005, 1:39 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
KalleW wrote:
AND let me suggest parameters for the include (as we just talk about changes)
I can see how this might be useful so I'll keep it in mind for a future version. Thanks.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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