Open qilishidai opened 2 months ago
使用opdll调用系统命令时,调用 op.GetCmdStr("D:/Games/leidian/LDPlayer9/ldconsole.exe list2",2000)会让程序完全卡死, 如果等待时间设置得很小则没有问题 op.GetCmdStr("D:/Games/leidian/LDPlayer9/ldconsole.exe list2",5)
使用正常情况命令会输出如下内容 0,雷电模拟器,0,0,0,-1,-1,800,600,160 1,雷电模拟器-1,0,0,0,-1,-1,800,600,160
使用py自带的调用也没有问题,唯独opdll会卡死 ''' python import subprocess
command = r"D:\Games\leidian\LDPlayer9\ldconsole.exe list2" result = subprocess.run(command, shell=True, capture_output=True, text=True) print(result.stdout)
‘’‘
使用opdll调用系统命令时,调用 op.GetCmdStr("D:/Games/leidian/LDPlayer9/ldconsole.exe list2",2000)会让程序完全卡死, 如果等待时间设置得很小则没有问题 op.GetCmdStr("D:/Games/leidian/LDPlayer9/ldconsole.exe list2",5)
使用正常情况命令会输出如下内容 0,雷电模拟器,0,0,0,-1,-1,800,600,160 1,雷电模拟器-1,0,0,0,-1,-1,800,600,160
使用py自带的调用也没有问题,唯独opdll会卡死 ''' python import subprocess
command = r"D:\Games\leidian\LDPlayer9\ldconsole.exe list2" result = subprocess.run(command, shell=True, capture_output=True, text=True) print(result.stdout)
‘’‘