如何从 excel 工作簿打开 AutoIt 脚本,然后关闭父工作簿?

How open the AutoIt script from excel workbook and after that parent Workbook get close?

在我当前的项目中,Excel 宏使用函数打开 AutoIt 脚本 Call Shell("location of autoit script").

为了 AutoIt 脚本的正常运行,它需要关闭父 Excel 工作簿,所以关闭 Excel 操作是在 AutoIt 脚本本身中编写的。

但是一旦 AutoIt 脚本关闭父 Excel 工作簿,脚本就会暂停并且什么都不做。

如何从 Excel 工作簿打开 AutoIt 脚本,然后关闭父工作簿?

这个问题可以通过先打开 AutoIT 脚本然后使用 AutoIT 脚本打开 Excel 文件来解决,之后 AutoIT 自行关闭并且 Excel 仍然打开。