{"id":265334,"date":"2015-09-10T11:26:02","date_gmt":"2015-09-10T07:26:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=265334"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=265334","title":{"rendered":"\u0421\u0442\u0430\u0440\u044b\u0439 \u043d\u043e\u0432\u044b\u0439 pywinauto: \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f Windows GUI \u043d\u0430 Python \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 install\/uninstall"},"content":{"rendered":"<p>       <img decoding=\"async\" align=\"left\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/941\/0dd\/4ec\/9410dd4ec53040079acd57990baaabfd.jpg\" alt=\"image\"\/><br \/>  \u041e\u0434\u043d\u0430\u0436\u0434\u044b, \u0432 \u043f\u043e\u0438\u0441\u043a\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 GUI \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043c\u043d\u0435 \u043f\u043e\u043f\u0430\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u0438\u0442\u043e\u043d\u043e\u0432\u0441\u043a\u0438\u0439 \u043f\u0430\u043a\u0435\u0442 <a href=\"http:\/\/pywinauto.github.io\/\">pywinauto<\/a>. \u0418 \u0445\u043e\u0442\u044f \u043e\u043d \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044b \u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e Windows Forms, \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u043e\u043d \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u0451\u043b.<br \/>  \u0418\u0441\u0442\u043e\u0440\u0438\u044f pywinauto \u0431\u0435\u0440\u0451\u0442 \u0441\u0432\u043e\u0451 \u043d\u0430\u0447\u0430\u043b\u043e \u0433\u0434\u0435-\u0442\u043e \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 1998 \u0433\u043e\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 Mark McMahon \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043d\u0443\u0436\u0434 GUI Automation \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 C (\u043d\u0430 \u044d\u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0433\u043e\u0434\u0430 \u0434\u0432\u0430), \u0430 \u0437\u0430\u0442\u0435\u043c, \u0443\u0436\u0435 \u0432 2005-\u043c, \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b \u0435\u0451 \u043d\u0430 Python \u0437\u0430 \u0442\u0440\u0438 \u043c\u0435\u0441\u044f\u0446\u0430. \u041c\u043e\u0449\u044c \u043f\u0438\u0442\u043e\u043d\u0430 \u043f\u0440\u043e\u044f\u0432\u0438\u043b\u0430 \u0441\u0435\u0431\u044f \u0432\u043e \u0432\u0441\u0435\u0439 \u043a\u0440\u0430\u0441\u0435: \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 pywinauto \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0438 \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u043b\u0441\u044f \u0441 2006 \u043f\u043e 2010. \u0412 \u0433\u043e\u0434\u044b \u0437\u0430\u0442\u0438\u0448\u044c\u044f, \u0432 2011-2012 \u0434\u043e\u0431\u0440\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a <a href=\"https:\/\/github.com\/moden-py\">moden-py<\/a> \u043d\u0430\u043f\u0438\u0441\u0430\u043b GUI helper \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u043e\u043a\u043e\u043d \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 pywinauto \u043a\u043e\u0434\u0430 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/code.google.com\/p\/swapy\/\">SWAPY<\/a>.<br \/>  \u0422\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043c\u0438\u0440 \u043c\u0435\u043d\u044f\u043b\u0441\u044f. \u041d\u0430\u0448\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u0435\u0440\u0435\u0448\u043b\u0430 \u043d\u0430 64-\u0431\u0438\u0442\u043d\u044b\u0435 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438, \u0438 \u043a\u043b\u043e\u043d pywinauto \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430 64-\u0431\u0438\u0442\u043d\u043e\u043c Python. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u043b\u0441\u044f \u0447\u0435\u0442\u044b\u0440\u0435 \u0433\u043e\u0434\u0430 \u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u043c \u0443\u0441\u0442\u0430\u0440\u0435\u043b. \u0412 2015 \u0433\u043e\u0434\u0443 \u0441 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f \u041c\u0430\u0440\u043a\u0430 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u0434\u043e\u0445\u043d\u0443\u0442\u044c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u043e\u0432\u0443\u044e \u0436\u0438\u0437\u043d\u044c. \u0422\u0435\u043f\u0435\u0440\u044c pywinauto \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e <a href=\"https:\/\/github.com\/pywinauto\/pywinauto\">\u0436\u0438\u0432\u0451\u0442 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/a>, \u0430 \u0432\u043e \u043c\u043d\u043e\u0433\u043e\u043c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u0430\u043c\u0440\u0430\u0434\u0443 <a href=\"https:\/\/github.com\/airelil\">airelil<\/a> \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b <a href=\"https:\/\/ci.appveyor.com\/project\/vasily-v-ryabov\/pywinauto\">\u0431\u0435\u0433\u0430\u044e\u0442 \u043d\u0430 CI \u0441\u0435\u0440\u0432\u0435\u0440\u0435 AppVeyor<\/a>.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u044b \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0438 3 \u043d\u043e\u0432\u044b\u0445 \u0440\u0435\u043b\u0438\u0437\u0430 \u043b\u0438\u043d\u0435\u0439\u043a\u0438 0.5.x (\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u2014 0.5.2). \u0413\u043b\u0430\u0432\u043d\u044b\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 0.4.2:<\/p>\n<ul>\n<li> \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 64-\u0431\u0438\u0442\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 x64 \u043f\u0438\u0442\u043e\u043d\u0430 (\u043f\u0440\u0430\u0432\u0434\u0430, \u043d\u0443\u0436\u0435\u043d 32-\u0431\u0438\u0442\u043d\u044b\u0439 Python \u0434\u043b\u044f 32-\u0431\u0438\u0442\u043d\u044b\u0445 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u043e\u0432).<\/li>\n<li> \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Python 3.<\/li>\n<li> \u0420\u0435\u0448\u0435\u043d\u044b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 PyPI \u043f\u0430\u043a\u0435\u0442\u043e\u043c.<\/li>\n<li> \u0423\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0440\u0443\u0436\u0438\u0442\u044c pywinauto c py2exe \u0438 \u0435\u043c\u0443 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438.<\/li>\n<li> \u0423\u043b\u0443\u0447\u0448\u0435\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0440\u044f\u0434\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0442\u0443\u043b\u0431\u0430\u0440\u0430, tree view \u0438 list view.<\/li>\n<li> \u041c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432 \u043b\u043e\u0433 \u0447\u0435\u0440\u0435\u0437 <code>pywinauto.actionlogger.enable()<\/code>.<\/li>\n<li> \u0415\u0449\u0451 \u0446\u0435\u043b\u044b\u0439 \u0440\u044f\u0434 \u043c\u0435\u043b\u043a\u0438\u0445 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439 \u0438 \u0431\u0430\u0433 \u0444\u0438\u043a\u0441\u043e\u0432.<\/li>\n<\/ul>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0433\u043e\u0434\u0430 \u043d\u0430\u0448\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 pywinauto \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0441\u043e\u0444\u0442\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 custom \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044b. \u0414\u043b\u044f \u043d\u0438\u0445 \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 wrapper&#8217;\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0435 \u043c\u0435\u0442\u043e\u0434 HwndWrapper.SendMessage \u0438 \u043a\u043b\u0430\u0441\u0441 RemoteMemoryBlock (\u0442\u043e\u0436\u0435, \u043a\u0441\u0442\u0430\u0442\u0438, \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u043d\u044b\u0439 \u043f\u043e \u0445\u043e\u0434\u0443 \u0434\u0435\u043b\u0430). \u041d\u043e \u044d\u0442\u043e \u0442\u0435\u043c\u0430 \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0431\u043e\u0440\u0430, \u0442.\u043a. \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 custom \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432 \u0434\u043b\u044f pywinauto \u044f \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b.<\/p>\n<p>  \u041f\u043e\u043a\u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 pywinauto \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435.<\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 install \/ uninstall<\/h3>\n<p>  \u0427\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443\/\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0444\u0442\u0430 \u043d\u0430 100500 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445. \u041f\u043e\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 7zip. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e 64-\u0431\u0438\u0442\u043d\u044b\u0439 installer \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u043a\u0430\u0447\u0430\u043d \u0441 <a href=\"http:\/\/www.7-zip.org\">www.7-zip.org<\/a> \u0438 \u043b\u0435\u0436\u0438\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043e\u0434\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0441 \u043d\u0430\u0448\u0438\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438. \u041d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 User Account Control (UAC) \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d \u0434\u043e \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f (\u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u0441\u0435\u0442\u044c, \u0447\u0442\u043e \u043d\u0435 \u0432\u0440\u0435\u0434\u0438\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438).<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n<p>  \u0422\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 <a href=\"https:\/\/gist.github.com\/vasily-v-ryabov\/7a04717af4584cbb840f\">install_7zip.py<\/a> (\u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u2014 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f):<\/p>\n<pre><code class=\"python\">from __future__ import print_function # for py2\/py3 compaibility import sys, os  # assume the installer is placed in the same folder as the script os.chdir(os.path.join(os.getcwd(), os.path.dirname(sys.argv[0]))) import pywinauto  app = pywinauto.Application().Start(r'msiexec.exe \/i 7z920-x64.msi')  Wizard = app['7-Zip 9.20 (x64 edition) Setup'] Wizard.NextButton.Click()  Wizard['I &accept the terms in the License Agreement'].Wait('enabled').CheckByClick() Wizard.NextButton.Click()  Wizard['Custom Setup'].Wait('enabled') Wizard.NextButton.Click()  Wizard.Install.Click()  Wizard.Finish.Wait('enabled', timeout=30) Wizard.Finish.Click() Wizard.WaitNot('visible')  if os.path.exists(r&quot;C:\\Program Files\\7-Zip\\7zFM.exe&quot;):     print('OK') else:     print('FAIL') <\/code><\/pre>\n<p>  \u0421 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0432\u0441\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u043e \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432. \u0427\u0442\u043e\u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c check box \u0434\u043b\u044f \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f \u0441 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439, \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043c\u0435\u0442\u043e\u0434 CheckByClick(), \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0432 pywinauto 0.5.0, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0447\u0435\u043a \u0431\u043e\u043a\u0441\u044b \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u043d\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 WM_CHECK, \u0430 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043a\u043b\u0438\u043a.<\/p>\n<p>  \u0414\u043b\u0438\u043d\u043d\u043e\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 Wait() \u0441 \u044f\u0432\u043d\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c timeout=30 (\u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445). \u0422\u043e \u0435\u0441\u0442\u044c \u0441\u0430\u043c \u043e\u0431\u044a\u0435\u043a\u0442 <code>Wizard.Finish<\/code> \u2014 \u044d\u0442\u043e \u043b\u0438\u0448\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, \u0438 \u043e\u043d\u043e \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0432\u044b\u0437\u0432\u0430\u043d \u043c\u0435\u0442\u043e\u0434 Wait() \u043b\u0438\u0431\u043e \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u0435\u0442\u043e\u0434. \u0421\u0442\u0440\u043e\u0433\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0432\u044b\u0437\u043e\u0432 <code>Wizard.Finish.Click()<\/code> \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u0435\u043d \u0431\u043e\u043b\u0435\u0435 \u0434\u043b\u0438\u043d\u043d\u043e\u043c\u0443 \u0432\u044b\u0437\u043e\u0432\u0443 <code>Wizard.Finish.WrapperObject().Click()<\/code> (\u043e\u0431\u044b\u0447\u043d\u043e \u043e\u043d \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0435\u044f\u0432\u043d\u043e) \u0438 \u043f\u043e\u0447\u0442\u0438 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u0435\u043d <code>Wizard.Finish.Wait('enabled').Click()<\/code>. \u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443, \u043d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044c \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u0430 Wait().<\/p>\n<h3>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f <a href=\"https:\/\/gist.github.com\/vasily-v-ryabov\/e5f927908d424bad422b\">uninstall_7zip.py<\/a> \u0443\u0441\u0442\u0440\u043e\u0435\u043d \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043b\u0435\u0437\u0442\u044c \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \u00ab\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u00bb. \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f explorer.exe, \u043c\u043e\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<pre><code class=\"python\">from __future__ import print_function import pywinauto  pywinauto.Application().Start(r'explorer.exe') explorer = pywinauto.Application().Connect(path='explorer.exe')  # Go to &quot;Control Panel -&gt; Programs and Features&quot; NewWindow = explorer.Window_(top_level_only=True, active_only=True, class_name='CabinetWClass') try:     NewWindow.AddressBandRoot.ClickInput()     NewWindow.TypeKeys(r'Control Panel\\Programs\\Programs and Features{ENTER}', with_spaces=True, set_foreground=False)     ProgramsAndFeatures = explorer.Window_(top_level_only=True, active_only=True, title='Programs and Features', class_name='CabinetWClass')      # wait while list of programs is loading     explorer.WaitCPUUsageLower(threshold=5)      item_7z = ProgramsAndFeatures.FolderView.GetItem('7-Zip 9.20 (x64 edition)')     item_7z.EnsureVisible()     item_7z.ClickInput(button='right', where='icon')     explorer.PopupMenu.MenuItem('Uninstall').Click()      Confirmation = explorer.Window_(title='Programs and Features', class_name='#32770', active_only=True)     if Confirmation.Exists():         Confirmation.Yes.ClickInput()         Confirmation.WaitNot('visible')      WindowsInstaller = explorer.Window_(title='Windows Installer', class_name='#32770', active_only=True)     if WindowsInstaller.Exists():         WindowsInstaller.WaitNot('visible', timeout=20)      SevenZipInstaller = explorer.Window_(title='7-Zip 9.20 (x64 edition)', class_name='#32770', active_only=True)     if SevenZipInstaller.Exists():         SevenZipInstaller.WaitNot('visible', timeout=20)      if '7-Zip 9.20 (x64 edition)' not in ProgramsAndFeatures.FolderView.Texts():         print('OK') finally:     NewWindow.Close() <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u041f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 explorer.exe \u043a\u0440\u0430\u0442\u043a\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 (launcher), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0447\u0442\u043e explorer.exe (worker) \u0443\u0436\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d. \u0422\u0430\u043a\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430 \u00ablauncher-&gt;worker\u00bb \u0438\u043d\u043e\u0433\u0434\u0430 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c\u0441\u044f \u043a \u0440\u0430\u0431\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0443 explorer.exe \u043c\u0435\u0442\u043e\u0434\u043e\u043c connect().<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043a\u043b\u0438\u043a\u0430 \u043d\u0430 \u0430\u0434\u0440\u0435\u0441\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 (<code>AddressBandRoot<\/code>) \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 in-place edit box (\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u0432\u0432\u043e\u0434\u0430). \u041f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 <code>TypeKeys()<\/code> \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>set_foreground=False<\/code> (\u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 0.5.0), \u0438\u043d\u0430\u0447\u0435 in-place edit box \u0438\u0441\u0447\u0435\u0437\u043d\u0435\u0442 \u0441 \u0440\u0430\u0434\u0430\u0440\u043e\u0432. \u0414\u043b\u044f \u0432\u0441\u0435\u0445 in-place \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0432 False.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u043b\u0433\u043e, \u043e\u0434\u043d\u0430\u043a\u043e \u0441\u0430\u043c ListView \u043a\u043e\u043d\u0442\u0440\u043e\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u044b\u0437\u043e\u0432 <code>ProgramsAndFeatures.FolderView.Wait('enabled')<\/code> \u043d\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e \u043e\u043d \u0443\u0436\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. \u041b\u0435\u043d\u0438\u0432\u0430\u044f (lazy) \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438\u0434\u0451\u0442 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c CPU \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 explorer.exe. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 pywinauto 0.5.2 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0434\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430: <code>CPUUsage()<\/code>, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0438\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 CPU \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445, \u0438 <code>WaitCPUUsageLower()<\/code>, \u0436\u0434\u0443\u0449\u0438\u0439, \u043f\u043e\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 CPU \u043d\u0435 \u0443\u043f\u0430\u0434\u0451\u0442 \u043d\u0438\u0436\u0435 \u043f\u043e\u0440\u043e\u0433\u0430 (2.5% \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e). \u0418\u0434\u0435\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043a\u0430\u043c\u0440\u0430\u0434\u0430 JOHN_16: <a href=\"http:\/\/john16blog.blogspot.ru\/2014\/11\/cpu-pywinauto.html\">\u00ab\u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 CPU\u00bb<\/a>.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0432\u044b\u0437\u043e\u0432 <code>item_7z.EnsureVisible()<\/code> \u0432\u043e\u043b\u0448\u0435\u0431\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u043e\u043c\u044b\u0439 item \u0441\u0442\u0430\u043b \u0432\u0438\u0434\u0435\u043d. \u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u043a\u0440\u043e\u043b\u043b \u0431\u0430\u0440\u043e\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>  \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0437\u043e\u0432\u043e\u0432 Wait \u0438 WaitNot \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0438\u043b\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0433\u043e (\u0434\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e). \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b WaitNot \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f. \u042d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430.<\/p>\n<h3>\u00ab\u0412\u0435\u0434\u044c \u0436\u0438\u0437\u043d\u044c, \u043e\u043d\u0430 \u0438 \u043f\u0440\u043e\u0449\u0435, \u0438 \u0441\u043b\u043e\u0436\u043d\u0435\u0435&#8230;\u00bb<\/h3>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044d\u0442\u043e \u0431\u044b\u043b \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043f\u0440\u0438\u043c\u0435\u0440. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 7zip \u0432\u0441\u0451 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c cmd.exe as Administrator \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 (\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0438 \u043b\u044e\u0431\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 UAC):  <\/p>\n<pre><code>    wmic product where name=&quot;7-Zip 9.20 (x64 edition)&quot; call uninstall <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0437\u043e\u043e\u043f\u0430\u0440\u043a \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440\u043e\u0432 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f .msi \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438, \u0430 \u0441\u043f\u0435\u043a\u0442\u0440 \u0437\u0430\u0434\u0430\u0447 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0447\u0435\u043d\u044c \u0448\u0438\u0440\u043e\u043a.<\/p>\n<h3>\u041e \u0447\u0435\u043c \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442<\/h3>\n<p>  \u0415\u0441\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u0431\u044b\u043b \u043f\u0440\u043e Python 3 \u0438 64 \u0431\u0438\u0442\u0430, \u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430 \u043f\u043e\u0432\u0435\u0441\u0442\u043a\u0435 \u0434\u043d\u044f \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 WPF \u0438 \u0440\u044f\u0434\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043d\u0435 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0445 UI Automation API. \u041d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432 \u044d\u0442\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0435\u0441\u0442\u044c. \u041b\u044e\u0431\u0443\u044e \u043f\u043e\u043c\u043e\u0449\u044c \u0432 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 back-end&#8217;\u043e\u0432 \u043f\u043e\u0434 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 pywinauto \u043c\u044b \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u043c.               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/266459\/\"> http:\/\/habrahabr.ru\/post\/266459\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" align=\"left\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/941\/0dd\/4ec\/9410dd4ec53040079acd57990baaabfd.jpg\" alt=\"image\"\/><br \/>  \u041e\u0434\u043d\u0430\u0436\u0434\u044b, \u0432 \u043f\u043e\u0438\u0441\u043a\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 GUI \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043c\u043d\u0435 \u043f\u043e\u043f\u0430\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u0438\u0442\u043e\u043d\u043e\u0432\u0441\u043a\u0438\u0439 \u043f\u0430\u043a\u0435\u0442 <a href=\"http:\/\/pywinauto.github.io\/\">pywinauto<\/a>. \u0418 \u0445\u043e\u0442\u044f \u043e\u043d \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044b \u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e Windows Forms, \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u043e\u043d \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u0451\u043b.<br \/>  \u0418\u0441\u0442\u043e\u0440\u0438\u044f pywinauto \u0431\u0435\u0440\u0451\u0442 \u0441\u0432\u043e\u0451 \u043d\u0430\u0447\u0430\u043b\u043e \u0433\u0434\u0435-\u0442\u043e \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 1998 \u0433\u043e\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 Mark McMahon \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043d\u0443\u0436\u0434 GUI Automation \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 C (\u043d\u0430 \u044d\u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0433\u043e\u0434\u0430 \u0434\u0432\u0430), \u0430 \u0437\u0430\u0442\u0435\u043c, \u0443\u0436\u0435 \u0432 2005-\u043c, \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b \u0435\u0451 \u043d\u0430 Python \u0437\u0430 \u0442\u0440\u0438 \u043c\u0435\u0441\u044f\u0446\u0430. \u041c\u043e\u0449\u044c \u043f\u0438\u0442\u043e\u043d\u0430 \u043f\u0440\u043e\u044f\u0432\u0438\u043b\u0430 \u0441\u0435\u0431\u044f \u0432\u043e \u0432\u0441\u0435\u0439 \u043a\u0440\u0430\u0441\u0435: \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 pywinauto \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0438 \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u043b\u0441\u044f \u0441 2006 \u043f\u043e 2010. \u0412 \u0433\u043e\u0434\u044b \u0437\u0430\u0442\u0438\u0448\u044c\u044f, \u0432 2011-2012 \u0434\u043e\u0431\u0440\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a <a href=\"https:\/\/github.com\/moden-py\">moden-py<\/a> \u043d\u0430\u043f\u0438\u0441\u0430\u043b GUI helper \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u043e\u043a\u043e\u043d \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 pywinauto \u043a\u043e\u0434\u0430 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/code.google.com\/p\/swapy\/\">SWAPY<\/a>.<br \/>  \u0422\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043c\u0438\u0440 \u043c\u0435\u043d\u044f\u043b\u0441\u044f. \u041d\u0430\u0448\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u0435\u0440\u0435\u0448\u043b\u0430 \u043d\u0430 64-\u0431\u0438\u0442\u043d\u044b\u0435 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438, \u0438 \u043a\u043b\u043e\u043d pywinauto \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430 64-\u0431\u0438\u0442\u043d\u043e\u043c Python. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u043b\u0441\u044f \u0447\u0435\u0442\u044b\u0440\u0435 \u0433\u043e\u0434\u0430 \u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u043c \u0443\u0441\u0442\u0430\u0440\u0435\u043b. \u0412 2015 \u0433\u043e\u0434\u0443 \u0441 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f \u041c\u0430\u0440\u043a\u0430 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u0434\u043e\u0445\u043d\u0443\u0442\u044c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u043e\u0432\u0443\u044e \u0436\u0438\u0437\u043d\u044c. \u0422\u0435\u043f\u0435\u0440\u044c pywinauto \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e <a href=\"https:\/\/github.com\/pywinauto\/pywinauto\">\u0436\u0438\u0432\u0451\u0442 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/a>, \u0430 \u0432\u043e \u043c\u043d\u043e\u0433\u043e\u043c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u0430\u043c\u0440\u0430\u0434\u0443 <a href=\"https:\/\/github.com\/airelil\">airelil<\/a> \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b <a href=\"https:\/\/ci.appveyor.com\/project\/vasily-v-ryabov\/pywinauto\">\u0431\u0435\u0433\u0430\u044e\u0442 \u043d\u0430 CI \u0441\u0435\u0440\u0432\u0435\u0440\u0435 AppVeyor<\/a>.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-265334","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/265334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=265334"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/265334\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=265334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=265334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}