ahk studio v2 version Topic is solved
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
ahk studio v2 version
I'm switching to v2 after, geez, 15 years of smooth sailing with autohotkey..... but for the life of me cannot get ahk studio to work, I download the v2 capable version from the-automator's website. I've used omni search to look for settings, I see that it is looking for v2 installed but I can't figure out what to do...
Re: ahk studio v2 version
No, actually, it is not. It is running it as v1 code. That is a v1 error message. Line 4 is v1 code, so it could be that AHK has deduced it should be running your code with v1. Then you follow it with v2 code, so it will not run correctly no matter which version it chooses. Remove the % symbols from line 4, and to ensure it selects v2, put this at the top of your code:metacognition wrote: ↑ I see that it is looking for v2 installed but I can't figure out what to do...
Code: Select all
#Requires AutoHotkey v2.0
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
Re: ahk studio v2 version
Thank you Boiler,
I think I'm missing the part where I tell ahk-studio to be v2. When I open a script with v2 it shows this error, and when I hit run nothing happens.
I think I'm missing the part where I tell ahk-studio to be v2. When I open a script with v2 it shows this error, and when I hit run nothing happens.
Re: ahk studio v2 version
First make sure that you have v2 installed and that you can run v2 scripts from File Explorer before worrying about running them from AHK Studio. So far, there is no evidence that you have v2 installed at all. Installing a v2 capable version of AHK Studio does not mean you have installed AHK v2.metacognition wrote: ↑ I think I'm missing the part where I tell ahk-studio to be v2.
Actually, this is again evidence that you are not opening your script with v2. That is a v1 error message, and if it was aware you had v2 installed, it would have used it. That message is saying that AHK would like to run it with v2, but it only sees v1 installed.metacognition wrote: ↑ When I open a script with v2 it shows this error, and when I hit run nothing happens.
You might want to show your AHK installation directory (for many/most, it is in "C:\Program Files\AutoHotkey" which would contain a "v2.0.2" or similar folder).
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
Re: ahk studio v2 version
Thank you Boiler,
Ok, understood, I did/do have v2 installed.
And this is the version of ahk-studio I'm using.
Ok, understood, I did/do have v2 installed.
And this is the version of ahk-studio I'm using.
Re: ahk studio v2 version
Did you try running a v2 script from File Explorer (not from AHK Studio) like I suggested?
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
Re: ahk studio v2 version
Yes, it appears to run fine. See below.
Re: ahk studio v2 version Topic is solved
So AHK Studio apparently doesn't know where to find v2, which is odd if it really is the version that supports v2. I don't use it. It would seem that its settings are not pointing to the v2 executable. If you don't see where you would update that, I would ask in the AHK Studio section of the forum, although it doesn't appear that the author has been active on the forum for several months. I don't know what site you downloaded it from, but if they're charging for it, they should be providing support for it, so try reaching out through that site.
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
Re: ahk studio v2 version
So for any folks looking for v2 mod of ahk-studio, it's available on Joe Glines website, the-automator. He has videos on how to make it work so go to his site and spend a couple bucks to help support his work.