提交 13a2fe21 编写于 作者: 三月三net's avatar 三月三net

Python超人-宇宙模拟器

上级 dff629f3
...@@ -8,6 +8,7 @@ import win32gui ...@@ -8,6 +8,7 @@ import win32gui
import win32ui import win32ui
import win32con import win32con
import win32api import win32api
import traceback
def get_window_handle(window_name="universe_sim"): def get_window_handle(window_name="universe_sim"):
...@@ -78,6 +79,7 @@ def sim_window_screen_shot(wait_ses=-1): ...@@ -78,6 +79,7 @@ def sim_window_screen_shot(wait_ses=-1):
img = screen_shot(img_dc) img = screen_shot(img_dc)
except Exception as e: except Exception as e:
print("ERROR:", str(e)) print("ERROR:", str(e))
traceback.print_exc()
return None return None
return img return img
if wait_ses < 0: if wait_ses < 0:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册