目的是为了节省键位,想通过1键来实现不同bee脚本的切换
第一步:/script SS=not SS or nil print(SS),这个可以正常运行,点击效果就是轮流打印出true nil
开始出问题
第二步:/script SS=not SS or nil print(SS) if SS then /bee auto 脚本1 方案 else /bee auto 脚本2 方案 end,点击就没反应了,都不打印
加了转译符,/script SS=not SS or nil print(SS) if SS then \/bee auto 脚本1 方案 else \/bee auto 脚本2 方案 end,也是不行
用bee的方式试了下
SS=not SS or nil
print(SS)
if SS then
BeeRun("/bee auto 脚本1 方案 ")
else
BeeRun(" /bee auto 脚本2 方案 ")
end
结果是能打印但不能启动bee脚本