{"id":3398,"date":"2011-07-02T01:39:31","date_gmt":"2011-07-01T16:39:31","guid":{"rendered":"http:\/\/mimumimu.net\/blog\/?p=3398"},"modified":"2012-04-21T18:24:14","modified_gmt":"2012-04-21T09:24:14","slug":"python-pywin32-%e3%81%a7-com-%e5%8f%a9%e3%81%84%e3%81%a6%e3%81%97%e3%82%83%e3%81%b9%e3%82%89%e3%81%9b%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/mimumimu.net\/blog\/2011\/07\/02\/python-pywin32-%e3%81%a7-com-%e5%8f%a9%e3%81%84%e3%81%a6%e3%81%97%e3%82%83%e3%81%b9%e3%82%89%e3%81%9b%e3%82%8b%e3%80%82\/","title":{"rendered":"Python + pywin32 \u3067 COM \u53e9\u3044\u3066\u3057\u3083\u3079\u3089\u305b\u308b\u3002"},"content":{"rendered":"<p>\u3069\u3046\u3082\u307f\u3080\u3089\u3067\u3059\u3002    <br \/>\u666e\u6bb5\u306f SUA (UNIX \u4e92\u63db\u74b0\u5883) \u4e0a\u3067\u53e9\u3044\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001     <br \/>\u4eca\u65e5\u306f\u5802\u3005\u3068 Windows \u4e0a\u3067\u53e9\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>PyWin32 \u3063\u3066\u306e\u3092\u3064\u304b\u3063\u3066\u3001 COM \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u53e9\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3002COM \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3068\u306f\u3002<\/p>\n<blockquote>\n<p><a href=\"http:\/\/e-words.jp\/w\/Microsoft.html\">Microsoft<\/a>\u793e\u304c\u63d0\u5531\u3059\u308b\u3001\u90e8\u54c1\u5316\u3055\u308c\u305f<a href=\"http:\/\/e-words.jp\/w\/E38397E383ADE382B0E383A9E383A0.html\">\u30d7\u30ed\u30b0\u30e9\u30e0<\/a>\u3092\u4f5c\u6210\u30fb\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u57fa\u76e4\u3068\u306a\u308b\u6280\u8853\u4ed5\u69d8\u3002\u7279\u5b9a\u306e\u6a5f\u80fd\u306e\u307f\u3092\u6301\u3064\u30d7\u30ed\u30b0\u30e9\u30e0\u90e8\u54c1\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067<a href=\"http:\/\/e-words.jp\/w\/E382A2E38397E383AAE382B1E383BCE382B7E383A7E383B3E382BDE38395E38388.html\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30bd\u30d5\u30c8<\/a>\u306e\u958b\u767a\u304c\u5bb9\u6613\u306b\u306a\u308b\u3002\u3053\u306e\u4ed5\u69d8\u306b\u57fa\u3065\u3044\u3066<a href=\"http:\/\/e-words.jp\/w\/E38387E383BCE382BF.html\">\u30c7\u30fc\u30bf<\/a>\u306e\u3084\u308a\u3068\u308a\u304c\u3067\u304d\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u90e8\u54c1\u306e\u3053\u3068\u3092COM<a href=\"http:\/\/e-words.jp\/w\/E382B3E383B3E3839DE383BCE3838DE383B3E38388.html\">\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/a>\u3068\u547c\u3076\u3002<\/p>\n<p align=right><a title=\"COM\u3068\u306f\u3010Component Object Model\u3011 - \u610f\u5473-\u89e3\u8aac-\u8aac\u660e-\u5b9a\u7fa9 \uff1a IT\u7528\u8a9e\u8f9e\u5178\" href=\"http:\/\/e-words.jp\/w\/COM.html\">COM\u3068\u306f\u3010Component Object Model\u3011 \u2013 \u610f\u5473-\u89e3\u8aac-\u8aac\u660e-\u5b9a\u7fa9 \uff1a IT\u7528\u8a9e\u8f9e\u5178<\/a><\/p>\n<\/blockquote>\n<p align=left>\u3060\u305d\u30fc\u3067\u3059\uff01 \uff08\u3049<\/p>\n<p align=left>\u5922\u306e\u3042\u308b\u8a71\u3092\u3059\u308b\u3068\u3001COM \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001    <br \/>\u97f3\u58f0\u8a8d\u8b58\u3084\u97f3\u58f0\u5408\u6210\u3001\u5404\u7a2e Office \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5236\u5fa1\u3001\u305d\u306e\u4ed6 COM \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u63d0\u4f9b\u3059\u308b\u6a5f\u80fd\u3092     <br \/>\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<hr>\n<h4>\uff11\uff0ePython \u306e\u5c0e\u5165<\/h4>\n<p><a title=\"http:\/\/www.python.jp\/Zope\/download\/pythoncore\" href=\"http:\/\/www.python.jp\/Zope\/download\/pythoncore\">http:\/\/www.python.jp\/Zope\/download\/pythoncore<\/a>     <br \/>\u4e0a\u8a18URL \u304b\u3089\u3001 Python 2.x \u7cfb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u3048\u30fc\u3068\u3001Python 3.x \u7cfb\u306f\u3044\u308d\u3044\u308d\u3068\u5909\u308f\u3063\u305f\u3088\u3046\u3067\u3002\u3067\u3082\u52d5\u304f\u306e\u304b\u306a\u3041\u3002\u3046\u30fc\u3093<\/p>\n<\/p>\n<h4>\uff12\uff0ePython for Windows extensions \u306e\u5c0e\u5165<\/h4>\n<p><a title=\"http:\/\/sourceforge.net\/projects\/pywin32\/files\/pywin32\/\" href=\"http:\/\/sourceforge.net\/projects\/pywin32\/files\/pywin32\/\">http:\/\/sourceforge.net\/projects\/pywin32\/files\/pywin32\/<\/a>     <br \/>\u3053\u3053\u304b\u3089\u6700\u65b0\u30d3\u30eb\u30c9\uff08\u4e00\u89a7\u306e \u300cBuild???\u300d \u306e\u6570\u5b57\u304c\u4e00\u756a\u5927\u304d\u3044\u7269\u3092\u9078\u629e\uff09\u306e\u3046\u3061\u306e\u3001     <br \/>\u4e0a\u3067\u5c0e\u5165\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u540c\u3058\u7269\uff08\u7121\u3051\u308c\u3070\u8fd1\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<\/p>\n<h4>\uff13\uff0e\u53e9\u304f\u3002<\/h4>\n<p>\u3070\u3093\u3070\u3093\uff01 \u3061\u304c\u3044\u307e\u3059\u3002    <br \/>\u30b9\u30bf\u30fc\u30c8\u30e1\u30cb\u30e5\u30fc\u304b\u3089 Python \u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2011\/07\/image.png\"><img decoding=\"async\" style=\"background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px\" title=image border=0 alt=image src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2011\/07\/image_thumb.png\" width=381 height=277><\/a><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u7acb\u3061\u4e0a\u3052\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u7d9a\u3051\u3066\u3001    <\/p>\n<div style=\"padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;float:none;padding-top:0px\" id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:d2cb1157-838b-4b06-80a1-431d5408c0e2\" class=wlWriterEditableSmartContent>\n<pre class=\"brush: python;\">import win32com.client<\/pre>\n<\/div>\n<p>\u3068\u30bf\u30a4\u30d7\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2011\/07\/image1.png\"><img decoding=\"async\" style=\"background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px\" title=image border=0 alt=image src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2011\/07\/image_thumb1.png\" width=407 height=296><\/a><\/p>\n<p>\u4eca\u56de\u306f\u97f3\u58f0\u5408\u6210\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u300cSapi.SpVoice\u300d\u3092\u4f7f\u3063\u3066\u3001<\/p>\n<p>Speak \u30e1\u30bd\u30c3\u30c9\u3092\u53e9\u3044\u3066\u3057\u3083\u3079\u3089\u305b\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u4eca\u56de\u4f7f\u3046\u3001\u300cMicrosoft Speech API\u300d\u304c\u6c17\u306b\u306a\u308b\u4eba\u306f\u3001<\/p>\n<p><a title=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms723602(v=VS.85).aspx\" href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms723602(v=VS.85).aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/ms723602(v=VS.85).aspx<\/a><\/p>\n<p>\u3053\u306e\u8fba\u306e\u8cc7\u6599\u3092\u53c2\u8003\u306b\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<div style=\"padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;float:none;padding-top:0px\" id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:fa8873f2-e2e8-4308-b924-bc40ed615ce8\" class=wlWriterEditableSmartContent>\n<pre class=\"brush: python;\">speech = win32com.client.Dispatch(&quot;Sapi.SpVoice&quot;)\r\nspeech.Speak(&quot;Hello Python World!&quot;)<\/pre>\n<\/div>\n<p>\u5b9f\u884c\u3057\u307e\u3059\u3068\u3001Win7 \/ Vista \u74b0\u5883\u3067\u306f\u3001\u591a\u5206\u3001\u7c73\u56fd\u82f1\u8a9e\u306e\u304a\u306d\u3044\u3055\u3093\u304c<\/p>\n<p>\u3057\u3083\u3079\u3063\u3066\u304f\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>XP \u74b0\u5883\u3067\u3059\u3068\u3001\u306a\u3093\u304b\u76f8\u5f53\u58f0\u306e\u3057\u3083\u304f\u308c\u305f\u304a\u3063\u3061\u3083\u3093\u304c\u3057\u3083\u3079\u3063\u3066\u304f\u308c\u305f\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<p>\u30fb\u30fb\u8a66\u3057\u3066\u306a\u3044\u3067\u3059\u304c\u3002<\/p>\n<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3053\u3093\u306a\u611f\u3058\u3067\u30fc\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u307f\u3080\u3089\u3067\u3059\u3002 \u666e\u6bb5\u306f SUA (UNIX \u4e92\u63db\u74b0\u5883) \u4e0a\u3067\u53e9\u3044\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001 \u4eca\u65e5\u306f\u5802\u3005\u3068 Windows \u4e0a\u3067\u53e9\u3044\u3066\u307f\u307e\u3059\u3002 PyWin32 \u3063\u3066\u306e\u3092\u3064\u304b\u3063\u3066\u3001 COM \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u53e9\u3044\u3066\u307f\u307e\u3059\u3002 \u3068\u308a\u3042\u3048\u305a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,15,7],"tags":[180,584,179],"class_list":["post-3398","post","type-post","status-publish","format-standard","hentry","category-python","category-windows","category-dev","tag-com","tag-python","tag-pywin32"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/3398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/comments?post=3398"}],"version-history":[{"count":0,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/3398\/revisions"}],"wp:attachment":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/media?parent=3398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/categories?post=3398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/tags?post=3398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}