Popular recipes tagged "meta:requires=pywin32"http://code.activestate.com/recipes/tags/meta:requires=pywin32/2015-02-22T10:42:18-08:00ActiveState Code RecipesConvert Excel to PDF with xlwings and xtopdf (Python)
2015-02-22T10:42:18-08:00Vasudev Ramhttp://code.activestate.com/recipes/users/4173351/http://code.activestate.com/recipes/579026-convert-excel-to-pdf-with-xlwings-and-xtopdf/
<p style="color: grey">
Python
recipe 579026
by <a href="/recipes/users/4173351/">Vasudev Ram</a>
(<a href="/recipes/tags/excel/">excel</a>, <a href="/recipes/tags/pdf/">pdf</a>, <a href="/recipes/tags/pdfwriter/">pdfwriter</a>, <a href="/recipes/tags/reportlab/">reportlab</a>, <a href="/recipes/tags/xlwings/">xlwings</a>, <a href="/recipes/tags/xtopdf/">xtopdf</a>).
</p>
<p>This recipe shows how to get the text content from an Excel file and convert it to PDF, using the xlwings and xtopdf Python libraries. It also shows how to create an Excel file programmatically using xlwings.</p>
Enable Clear Type font smoothing on Windows (pywin32 version) (Python)
2013-03-22T11:14:44-07:00ccpizzahttp://code.activestate.com/recipes/users/4170754/http://code.activestate.com/recipes/578499-enable-clear-type-font-smoothing-on-windows-pywin3/
<p style="color: grey">
Python
recipe 578499
by <a href="/recipes/users/4170754/">ccpizza</a>
(<a href="/recipes/tags/fontsmoothing/">fontsmoothing</a>, <a href="/recipes/tags/pywin32/">pywin32</a>, <a href="/recipes/tags/windows_api/">windows_api</a>).
Revision 2.
</p>
<p>Running the script without parameters will enable Clear Type font smoothing. Pass <code>0</code>, <code>false</code>, <code>off</code>, or <code>disable</code> to turn off Clear Type.</p>
<p>This version requires the <code>pywin32</code> module from <a href="http://sourceforge.net/projects/pywin32/files/pywin32/Build%2520218/" rel="nofollow">http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/</a></p>
<p>For a <code>ctypes</code>-based version see: <a href="http://code.activestate.com/recipes/578500-enable-clear-type-font-smoothing-on-windows-ctypes/" rel="nofollow">http://code.activestate.com/recipes/578500-enable-clear-type-font-smoothing-on-windows-ctypes/</a></p>
Execute remote commands on windows like psexec (Python)
2011-11-18T11:54:42-08:00Ofer Helmanhttp://code.activestate.com/recipes/users/4179914/http://code.activestate.com/recipes/577945-execute-remote-commands-on-windows-like-psexec/
<p style="color: grey">
Python
recipe 577945
by <a href="/recipes/users/4179914/">Ofer Helman</a>
(<a href="/recipes/tags/command/">command</a>, <a href="/recipes/tags/remote/">remote</a>, <a href="/recipes/tags/windows/">windows</a>).
Revision 4.
</p>
<p>This code attempts to implement psexec in python code, using wmi.
As part of a project of mine I had to run remote commands on remote Windows machines from other Windows machine. At first I used psexec for that with subprocess.Popen.
The reason in this code for creating .bat files and running them remotely is because complicated commands do not run properly with Win32_Process.Create</p>
<p>In this code I used this code: <a href="http://code.activestate.com/recipes/442521/history/3/" rel="nofollow">http://code.activestate.com/recipes/442521/history/3/</a></p>
<p>required installations:</p>
<p>pywin32 - <a href="http://sourceforge.net/projects/pywin32/files/pywin32/Build216/" rel="nofollow">http://sourceforge.net/projects/pywin32/files/pywin32/Build216/</a></p>
<p>wmi - <a href="http://timgolden.me.uk/python/downloads/" rel="nofollow">http://timgolden.me.uk/python/downloads/</a></p>
Click counter for Windows (Python)
2012-06-26T18:08:25-07:00Krystian Rosińskihttp://code.activestate.com/recipes/users/4182314/http://code.activestate.com/recipes/578176-click-counter-for-windows/
<p style="color: grey">
Python
recipe 578176
by <a href="/recipes/users/4182314/">Krystian Rosiński</a>
(<a href="/recipes/tags/mouse/">mouse</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>Run script from cmd.</p>
Converts doc files into text files on Windows platform (Python)
2012-05-08T06:39:43-07:00Shao-chuan Wanghttp://code.activestate.com/recipes/users/4168519/http://code.activestate.com/recipes/578121-converts-doc-files-into-text-files-on-windows-plat/
<p style="color: grey">
Python
recipe 578121
by <a href="/recipes/users/4168519/">Shao-chuan Wang</a>
(<a href="/recipes/tags/conversion/">conversion</a>, <a href="/recipes/tags/pythoncom/">pythoncom</a>, <a href="/recipes/tags/word/">word</a>).
</p>
<p><strong>READ BEFORE YOU USE THE CODE</strong></p>
<p><strong>Requirements</strong></p>
<ol>
<li>Windows platform</li>
<li>Python 2.7</li>
<li>pywin32, <a href="http://sourceforge.net/projects/pywin32/" rel="nofollow">http://sourceforge.net/projects/pywin32/</a></li>
<li>Word application installed on running machine</li>
</ol>
Windows Event Log Viewer (Python)
2010-12-12T06:40:35-08:00FB36http://code.activestate.com/recipes/users/4172570/http://code.activestate.com/recipes/577499-windows-event-log-viewer/
<p style="color: grey">
Python
recipe 577499
by <a href="/recipes/users/4172570/">FB36</a>
(<a href="/recipes/tags/system/">system</a>, <a href="/recipes/tags/windows/">windows</a>).
</p>
<p>Windows Event Log Viewer</p>