|
@@ -105,6 +105,7 @@ def smm_refresh(file_path):
|
|
|
if found_title == "":
|
|
|
print("窗口未打开")
|
|
|
return
|
|
|
+
|
|
|
if found_title.startswith(file_name_ext) == False:
|
|
|
print("当前窗口与excel不一致,当前窗口:", found_title, ";excel:", file_name_ext)
|
|
|
return
|
|
@@ -124,9 +125,9 @@ def smm_refresh(file_path):
|
|
|
|
|
|
|
|
|
|
|
|
- hwnd = win32gui.GetForegroundWindow()
|
|
|
- win32gui.ShowWindow(hwnd, win32con.SW_MAXIMIZE)
|
|
|
- time.sleep(1)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
r = random.randint(2, 3)
|