| View previous topic :: View next topic |
| Author |
Message |
TL
Joined: 01 Nov 2006 Posts: 20
|
Posted: Wed Sep 05, 2007 3:34 pm Post subject: Using multiple AHK versions? |
|
|
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 |
|
| Back to top |
|
 |
kk Guest
|
Posted: Wed Sep 05, 2007 3:36 pm Post subject: old is gold |
|
|
| continue with your practice of using old ahk |
|
| Back to top |
|
 |
Mustang
Joined: 17 May 2007 Posts: 421 Location: England
|
Posted: Wed Sep 05, 2007 3:54 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Wed Sep 05, 2007 6:00 pm Post subject: |
|
|
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.
| Other Downloads wrote: |
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.
|
_________________
(Common Answers) |
|
| Back to top |
|
 |
TL
Joined: 01 Nov 2006 Posts: 20
|
Posted: Wed Sep 05, 2007 8:45 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Andreone
Joined: 20 Jul 2007 Posts: 257 Location: Paris, France
|
Posted: Wed Sep 05, 2007 9:29 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|