Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoHotkey Version 2 breaks compatibility #86

Closed
ChristianHinge opened this issue Dec 27, 2022 · 6 comments · Fixed by #88
Closed

AutoHotkey Version 2 breaks compatibility #86

ChristianHinge opened this issue Dec 27, 2022 · 6 comments · Fixed by #88

Comments

@ChristianHinge
Copy link

Version 2.0 of AutoHotkey has officially been released, which, among other things, removes the "#NoEnv" command. version 2.0 changes
When opening desktop_switcher.ahk, via AutoHotkey, you get an error saying:

Error: This line does not contain a recognized action.

I think the readme should be updated to state that version <2.0 is needed to run the project (until compatible comes back).

@rikrdo89
Copy link

Same issue here. Is there a workaround to make the script work with AHK v2.0?

@hexadeciman
Copy link

interested too !

@crossan007
Copy link
Contributor

Also interested

crossan007 added a commit to crossan007/windows-desktop-switcher that referenced this issue Mar 7, 2023
@ChristianHinge
Copy link
Author

If you install AutohotKey version 1, then it works fine.

@crossan007
Copy link
Contributor

@ChristianHinge yep, V1 works fine.

I opened #88 to add a header to the script so that anyone who tries running it with V2 will be prompted to auto-install and run with V1

@eriksneff
Copy link

eriksneff commented Mar 28, 2023

Just finished installing Autohotkey v2.0.2 only to discover I had the wrong version. I then re-read the installation portion of this page https://github.com/pmb6tz/windows-desktop-switcher and realized there's a line that's misleading:

Install AutoHotkey v1.1 or later - this is technically incorrect and misleading. Should

Maybe something like this would be better:
Install AutoHotkey Version 1 Only (v1.1 or later, but not version 2 or later)
Install AutoHotkey v1.1 or later but Not Version 2
Install AutoHotkey Verion X, where 1.1 => X < 2

Actually kinda hard to say in an intuitive way, but one thing I'm confident about - it shouldn't say what it does now. Or better yet - add support for version 2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants