File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 77# from subprocess import PIPE, Popen
88# python调用命令行:https://zhuanlan.zhihu.com/p/329957363
99import winreg
10- from window_monitor import update_hwnd_arr , Desktop
10+ from window_monitor import update_hwnd_arr , get_json , add_dll_symbol
1111
1212exe_dir = os .path .dirname (os .path .realpath (sys .argv [0 ]))
1313os .chdir (exe_dir ) # 切换到文件所在目录
1414
15+ config_json = "_config.json"
16+ cfg = get_json (config_json )
17+ virtualdesktop_dll_name = cfg ["VirtualDesktop_DLL_name" ]
18+ VirtualDesktop , Desktop = add_dll_symbol (virtualdesktop_dll_name )
19+
1520userhomepath = os .environ ['USERPROFILE' ]
1621userdir = os .path .split (userhomepath )[- 1 ]
1722special_dir_dict = {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ def add_dll_symbol(dll_filename):
2222 import VirtualDesktop
2323 from VirtualDesktop import Desktop
2424 dbg = 1
25+ return VirtualDesktop , Desktop
2526
2627now_hwnd_all = []
2728# except_list = ['Progman',"Windows.UI.Core.CoreWindow", "ApplicationFrameWindow"]
You can’t perform that action at this time.
0 commit comments