File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,10 @@ def main():
8383 for obj in found ["arr" ]:
8484 dbg = 1
8585 if obj [4 ] == "explorer.exe" :
86+ if obj [5 ].endswith (" - 文件资源管理器" ):
87+ obj [5 ] = obj [5 ].replace (" - 文件资源管理器" ,"" )
8688 explorer_arr .append (obj )
87- explorer_arr .reverse ()
89+ # explorer_arr.reverse()
8890 started_arr = []
8991 started_titles = []
9092 error_list = []
@@ -99,6 +101,7 @@ def main():
99101 started_titles .append (_window_title )
100102 else :
101103 os .system ('explorer.exe "{}"' .format (_window_title ))
104+ time .sleep (0.1 )
102105 started_arr .append (obj )
103106 except Exception :
104107 error_list .append (obj )
@@ -114,8 +117,10 @@ def main():
114117 hwnd_all = update_hwnd_arr (return_value = True )
115118 explorer_arr = []
116119 for obj in hwnd_all ["arr" ]:
117- dbg = 1
120+ obj = list ( obj )
118121 if obj [4 ] == "explorer.exe" :
122+ if obj [5 ].endswith (" - 文件资源管理器" ):
123+ obj [5 ] = obj [5 ].replace (" - 文件资源管理器" ,"" )
119124 explorer_arr .append (obj )
120125 dbg = 1
121126# # 引用
You can’t perform that action at this time.
0 commit comments