|  | 
| 大佬你好,我可以用python拉起GUI但是没法让它自动运行计算,您有什么解决思路嘛?(大佬使用console版的帖子确实非常迅捷,我这没有console版  )另外我之前从没给tN配置过python解释器这个代码也能奏效,我不理解软件内配置只要是为啥? 
 复制代码import subprocess
import time
import pyautogui
# 路径配置
exe_path = r"D:\tNavigator\t-navigator22.4\tNavigator-22.4.exe"
model_path = r"D:\tNavigator\Project\IP14_CO2\IP14_E300.DATA"
run_btn_image = "run_button.png"
# 启动 tNavigator 加载模型
subprocess.Popen([exe_path, model_path])
time.sleep(15)  # 等待加载完成
# 使用图像识别点击运行按钮
location = pyautogui.locateCenterOnScreen(run_btn_image, confidence=0.85)
if location:
    pyautogui.moveTo(location)
    pyautogui.click()
    print("✅ 已自动点击运行按钮")
else:
    print("❌ 未识别到运行按钮")
 | 
 |