cweijan / autohotkey-plus

AutoHotkey language support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=cweijan.vscode-autohotkey-plus
MIT License
133 stars 18 forks source link

运行路径的问题 #25

Closed egbertwong closed 4 years ago

egbertwong commented 4 years ago

抱歉,我也遇到了运行路径的问题 我的项目路径为:

second.ahk is included by main.ahk. The content of main.ahk is as follows:

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#Include, second.ahk

MsgBox, Hello

点击 Run 按钮,报错如下:
E:\OpenSourseProject\ahk-project\main.ahk (6) : ==> #Include file "e:\OpenSourseProject\second.ahk" cannot be opened.
但是在文件夹里双击 main.ahk 是可以正常运行的。 把 include 的内容改成 %A_ScriptDir%/second.ahk 的话点击 Run 才能正常运行,请问我是有哪一步做错了吗?

我打开项目的方式是: 打开 ../opensourceproject/ahk-project/ 路径,右键文件夹空白处,选择 通过 code 打开

谢谢大佬的插件!!!

cweijan commented 4 years ago

2.4.11修复了该问题.

egbertwong commented 4 years ago

谢谢