0
在我的python脚本中,我需要将命令行参数传递给AutoIt脚本。因为在我的AutoIt脚本中,我获得了命令行参数并对其进行了处理。下面AutoIt脚本我使用得到命令行参数,它是工作的罚款:如何从python脚本将参数传递给autoIT脚本
#include <Array.au3>
#include <WinAPIShPath.au3>
Local $aCmdLine = _WinAPI_CommandLineToArgv($CmdLineRaw)
_ArrayDisplay($aCmdLine)
现在用我的python脚本我需要在命令行参数传递到上面的AutoIt脚本。
我试着使用Python脚本:
import os
args = ("test","abc")
os.execv("test.au3",args)
,但它给一个例外。
异常类型和消息会告诉你到底是什么问题。你为什么忽略它? –