安装AutoItLibrary库的过程中无休止的debug

xiaoxiao2025-05-30  16

安装AutoItLibrary库到ride导入成功需要的前置条件:

这里说的是win64机器

1、安装 pywin32

下载 pywin32: http://sourceforge.net/projects/pywin32/files/ 根据自己的系统以 Python 版本下载对应的版本,我的系统为 win764、Python2.7,所以下载为: pywin32-219.win-amd64-py2.7.exe

2、64位的机器还需要安装AutoIt V3,下载地址:https://www.autoitscript.com/site/autoit/downloads/。

然后在ride上导入AutoItLibrary库,失败。

原因是AutoIt V3安装后并没有加载。所以需要在dos命令窗口(管理员模式!)中进入....\AutoIt\AutoItX目录,执行:regsvr32 AutoItX3_x64.dll。

此时又提示 regsvr32 不是内部或外部命令,也不是可执行程序。。。。。

解决方法:

1.在环境变量里没有设置C:\Windows\System32

在环境变量path的最前面添加:C:\Windows\System32;

2.上一步依然没用,继续第2步

在环境变量path的最后面添加:;for %1 in (%windir%system32*.dll) do regsvr32.exe /s %1

此时再到命令行窗口(管理员模式!)进入....\AutoIt\AutoItX目录,执行:regsvr32 AutoItX3_x64.dll。会有提示AutoItX3_x64.dll在DllregisterServer成功注册的消息!

最后到ride中导入AutoItLibrary库,终于成功!

因为在debug的过程中忘了截图,,,,,,所以,,,,,只能纯文字了。

 

转载请注明原文地址: https://www.6miu.com/read-5030965.html

最新回复(0)