我在JS程序中调用了一个python程序,想将python运行的结果传递给到JS程序中,请问有什么办法吗?
var Python_filepath="file:///C:/project/auto_click.bat";
Runpython(Python_filepath);
Thread.Sleep(10000);
MessageBox.Show('Python finished')
function Runpython(strPath)
{
try
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
// Thread.Sleep(10000);
}
catch(e)
{
RESULT.InterpretEqualResult("Deploy Check",["1111","run python file error"]);
}
}