AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using multiple AHK versions?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
TL



Joined: 01 Nov 2006
Posts: 20

PostPosted: Wed Sep 05, 2007 3:34 pm    Post subject: Using multiple AHK versions? Reply with quote

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
View user's profile Send private message
kk
Guest





PostPosted: Wed Sep 05, 2007 3:36 pm    Post subject: old is gold Reply with quote

continue with your practice of using old ahk
Back to top
Mustang



Joined: 17 May 2007
Posts: 421
Location: England

PostPosted: Wed Sep 05, 2007 3:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Wed Sep 05, 2007 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
TL



Joined: 01 Nov 2006
Posts: 20

PostPosted: Wed Sep 05, 2007 8:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Andreone



Joined: 20 Jul 2007
Posts: 257
Location: Paris, France

PostPosted: Wed Sep 05, 2007 9:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group