提问人:Zale 提问时间:11/10/2023 更新时间:11/11/2023 访问量:17
在 SSH 断开连接时使用 Windows 10 服务器错误的屏幕截图进行编程
Program using screenshots on Windows 10 server errors upon SSH disconnection
问:
我有一个在线托管的 Windows 10 服务器上运行的 Python 程序,它使用屏幕截图定位特定图标。该程序使用图像识别来识别这些图标。但是,当我断开与 SSH 的连接时,由于缺少活动屏幕,程序会出错。
即使没有通过 SSH 直接连接,我怎样才能让它正常运行,确保它可以继续定位这些图标/屏幕并与之交互?
答:
0赞
Zale
11/11/2023
#1
https://superuser.com/questions/735442/stay-logged-in-while-rdp-session-is-over
标记的答案对我有用
tscon 1 /dest:控制台 ;开始进程 -FilePath “C:\Users\admin\AppData\Local\Programs\Python\Python311\python.exe” -ArgumentList '“C:\Users\admin\Desktop\script\script.py”'
上一个:修复 SQL 中无效的 json
下一个:如何在 C 中从图像中读取文本#
评论