Skip to content

Commit ed0346c

Browse files
committed
windows restore debug
1 parent cee86d1 commit ed0346c

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

mk_release.bat

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@echo off
2+
3+
::创建文件夹
4+
set newdir=releases\window_monitor_NEW
5+
mkdir %newdir%
6+
7+
::复制文件
8+
cp _config.json %newdir%
9+
cp restore_windows.bat %newdir%
10+
cp restore_windows.py %newdir%
11+
cp VirtualDesktop.dll %newdir%
12+
cp window_monitor_nogui.exe %newdir%
13+
14+
echo finished.
15+
echo 复制到了 %newdir% 文件夹中
16+
pause
17+

restore_windows.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ def main():
139139
print('index{}\t"{}"\texplorer.exe "{}"'.format(_desk_id,_desk_name,_window_title))
140140
while True:
141141
choice=input("输入 n 并回车以忽略这些窗口,直接回车关闭这些窗口: ")
142-
if choice in ['n',""]:
142+
if choice in ["n",""]:
143143
break
144144
else:
145145
print("输入错误.")
146-
if choice == 'n':
146+
if choice == "":
147147
for obj in not_moved_arr:
148148
win32gui.PostMessage(obj[3], win32con.WM_CLOSE, 0, 0)
149149
dbg=1

0 commit comments

Comments
 (0)