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

SciTE4AutoHotkey 3.1.0 is not compatible with AutoHotKey's current folder structure #63

Open
xproflipscarab opened this issue Sep 29, 2023 · 2 comments

Comments

@xproflipscarab
Copy link

When trying to run or debug a script Scite throws the error:
'C:\Program' is not recognized as an internal or external command, operable program or batch file.

It can be fixed by changing line 14 in ahk.properties from this:

AutoHotkey=$(AutoHotkeyDir)\AutoHotkey.exe

to this:

AutoHotkey=$(AutoHotkeyDir)\v2\AutoHotkey.exe

However, the ability to choose AHK V1 as a platform seems to be broken and running a V2 script does not run even with
#Requires AutoHotkey v1.0

@timdw
Copy link

timdw commented Feb 12, 2024

I just ran into this problem and solved it after I discovered I had an environment variable SCITE_USERHOME set to another folder. Removing it seems to have cleared things up for me.
Edit: Wrote too soon, V2 is OK but I had to create a symlink for the v1 exe using PowerShell. This will need adjusting depending on the version installed and needs to be run as admin:
New-Item -ItemType SymbolicLink -Path 'C:\Program Files\AutoHotkey\AutoHotKey.exe' -Target v1.1.37.01\AutoHotkeyU64.exe

@FoldZero
Copy link

Same issue after a reinstall..
SO i fixed by Uninstalling SCITE, AHK1, AHK2.

Once that was done install AHK1, then 2, then SCITE4AHK.

You must use the default folders "C:\progra..." etc

Works perfect now.

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

No branches or pull requests

3 participants