MyKeymap icon indicating copy to clipboard operation
MyKeymap copied to clipboard

代码优化: if语句语法 和 增加github 仓库地址按钮

Open ZJRui opened this issue 8 months ago • 3 comments

if语句语法

Image

fix: if globalHotkey == "customHotkeys" ====> `if (globalHotkey == "customHotkeys")

增加github 仓库地址按钮

Image

ZJRui avatar Apr 21 '25 01:04 ZJRui

在 ahk v2 中也会出现 if a != b and 1 > 0 等价于 if a != "b and 1 > 0" 这种情况吗? 怀疑是编辑器的代码提示出错了

xianyukang avatar Apr 21 '25 03:04 xianyukang

在 ahk v2 中也会出现 if a != b and 1 > 0 等价于 if a != "b and 1 > 0" 这种情况吗? 怀疑是编辑器的代码提示出错了 vscode的插件会检查if语法

https://github.com/CoffeeChaton/vscode-autohotkey-NekoHelp/issues/82#issuecomment-2161225375

ZJRui avatar Apr 21 '25 05:04 ZJRui

最好还是使用 带有括号 语法, 这种不加括号的 语法 vscdoe打开全部报红

ZJRui avatar Apr 21 '25 05:04 ZJRui