AutoHotkey Community

It is currently May 25th, 2012, 6:56 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: September 5th, 2007, 4:34 pm 
Offline

Joined: November 1st, 2006, 8:33 pm
Posts: 21
Location: Chicago, IL
Anybody developed an approach to developing different AHK scripts using different AHK versions. If I need to update an old script that I use in compiled form, I often prefer to execute the script using the original AHK version to avoid introducing unexpected problems. Has anyone found a good method for do this?

Thanks,
TL


Report this post
Top
 Profile  
Reply with quote  
 Post subject: old is gold
PostPosted: September 5th, 2007, 4:36 pm 
continue with your practice of using old ahk


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2007, 4:54 pm 
Offline

Joined: May 17th, 2007, 9:06 pm
Posts: 421
Location: England
Do you still have the original source code or only the compiled executable?

If its just the executable then I doubt this is possible

If you have the source code then it will be possible to update it
Im not aware of a script that will search through your code and update it
So you'll have to do so manually
The easiest way is to attempt to run it and goto were the error alerts tell you


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2007, 7:00 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8660
Location: Salem, MA
you can extract the source code from your exe if needed, but I don't think that is your question.

many (but not all) Old exes are Archived here: http://www.autohotkey.net/#archives


Chris tries very hard to make sure scripts are not broken by updates.

If you discover a script that works in older versions but not in the latest version (and it's not due to something in the changelog), please send the details to support @ autohotkey.com.

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2007, 9:45 pm 
Offline

Joined: November 1st, 2006, 8:33 pm
Posts: 21
Location: Chicago, IL
Sorry about the confusion. It is clear that I wasn't very clear about the problem I'm trying to solve.

I would like to have some of my scripts run with an old version of AHK and some run with new versions. Can I have multiple versions of AHK installed at the same time? If so, how can I specify which version I would like to have run a particular script?

TL


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2007, 10:29 pm 
Offline

Joined: July 20th, 2007, 10:23 am
Posts: 257
Location: Paris, France
This is an example with two versions of Autohotkey, say v1 and v2.
Install the v1 in a folder c:\...\v1folder
Install the v2 in a folder c:\...\v2folder

Then, launch Autohotkey.exe with the script name as argument. You can use batch files (.bat) to start your scripts, where you put the following:
c:\...\v1folder\autohotkey.exe path_to_my_script_that_needs_autohotkeyv1.ahk

c:\...\v2folder\autohotkey.exe path_to_my_script_that_needs_autohotkeyv2.ahk

Hope I'm clear enough


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, BrandonHotkey, Ohnitiel, sarevok9, toddintr 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