WallBreaker2 / op

Windows消息模拟,gdi,dx,opengl截图,找图,找字(OCR)
MIT License
391 stars 155 forks source link

调用 op.GetCmdStr("D:/Games/leidian/LDPlayer9/ldconsole.exe list2",2000)出现卡死 #139

Open qilishidai opened 2 months ago

qilishidai commented 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)

‘’‘