Closed NBKRedSpy closed 12 months ago
v 4.1.0 (of course) works fine.
You need to head your v1 scripts with #Requires AutoHotkey v1
- see https://github.com/mark-wiemer-org/ahkpp/issues/396#issuecomment-1676525716
Closing as @fade2gray's comment most likely addresses the issue. Please reopen if you're still having problems :)
Annotating the file did work. Thank you.
Description
V5.03
When trying to run a V1 Script (Ctrl + R), the extension thinks it is a V2 script.
Reproduction steps
Steps to reproduce the behavior:
1, Create an ahk file. Ex: main.ahk
Result: Error is "Error: This line does not contain a recognized action" The .exe is
C:\Users\MyUser\AppData\Local\Programs\AutoHotkey\v2\AutoHotkey64.exe
.Expected behavior
The V1 interpreter to be used.
Additional context
Running the script via AHK v1 or reloading from the V1's taskbar icon works as expected.
User Settings for extension: