运行ahk脚本时可以加参数,比如
Code: Select all
AutoHotKey.exe test.ahk argument
test.ahk脚本内容如下:
Code: Select all
Tooltip, The value of argument 1 is %1%
Sleep, 5000
return
Moderators: tmplinshi, arcticir
Code: Select all
AutoHotKey.exe test.ahk argument
Code: Select all
Tooltip, The value of argument 1 is %1%
Sleep, 5000
return
这是字符串的编解码问题,与脚本的编码应该是没有关系的吧?检查下脚本是否保存为了 UTF-8 (含BOM)
Code: Select all
cmd /K echo {argument} >> output.txt
我也不太确定。et2010 wrote:这是字符串的编解码问题,与脚本的编码应该是没有关系的吧?检查下脚本是否保存为了 UTF-8 (含BOM)
详情见这里:tmplinshi wrote: 我也不太确定。
最好是能说一下重现方法、提供测试程序。
Users browsing this forum: No registered users and 31 guests