关闭桌面现有chrome.exe:cmdutils.runCmd(‘TASKKILL /F /IM chrome.exe /T’)
打开chrome:win32api.ShellExecute(0, ‘open’, R’…\chrome.exe’, ‘’, ‘’,1)
设置chrome为桌面当前应用:windowutils.set_app_top(‘Google Chrome’)
关闭桌面现有chrome.exe:cmdutils.runCmd(‘TASKKILL /F /IM chrome.exe /T’)
打开chrome:win32api.ShellExecute(0, ‘open’, R’…\chrome.exe’, ‘’, ‘’,1)
设置chrome为桌面当前应用:windowutils.set_app_top(‘Google Chrome’)