autoit与powershell交互问题

autoit与powershell交互问题

date: 2024/6/22

通过文件传递数据

;autoit
FileDelete("c:\myfile.txt")
FileWrite("c:\myfile.txt", $SUPERBARPOS[1])
#powershell
$myvar = [IO.File]::ReadAllText("c:\myfile.txt")

要使用STDIN and STDOUT.相关的方法得先将autoit脚本编译成exe文件