pywin32 Questions

6

Solved

What library should I use to connect to odbc from python on windows? Is there a good alternative for pywin32 when it comes to odbc? I'm looking for something well-documented, robust, activel...
Halloran asked 20/4, 2009 at 13:41

5

Solved

How, in the simplest possible way, distinguish between Windows XP and Windows Vista, using Python and pywin32 or wxPython? Essentially, I need a function that called will return True iff current O...
Wivinia asked 13/10, 2008 at 7:35

1

Solved

Is it possible to run comserver without requiring elevation. For example I am able to run code from Python.TestServer (below) but it requires elevation. Python.TestServer code is at: Consuming Py...
Graubert asked 1/2, 2017 at 9:2

1

Solved

I'm trying to send a keystroke to an inactive TeraTerm Window using Pywin32. This answer led me to write this code: import win32gui import win32con import win32api hwndMain = win32gui.FindWindo...
Aparri asked 16/8, 2016 at 8:46

2

I am on Windows 7 and I have Windows Live installed. Now when I am trying to run following code import win32com.client win32com.client.Dispatch("Outlook.Application") I am getting follow...
Stilt asked 2/1, 2013 at 15:48

1

Solved

def on_printer_button_clicked(self, button): for i in range(len(self.printer_buttons)): if button == self.printer_buttons[i]: pHandle = win32print.OpenPrinter(self.printers[i]['pPrinterName']) ...
Ramulose asked 1/6, 2016 at 20:17

2

I've created several buttons (windows) in a main window, but tab and arrow keys are not working. My research revealed that for C++, the use of IsDialogMessage in the message pump creates a bypass o...
Chlamys asked 13/12, 2015 at 23:8

2

Solved

I am trying to work out how long, approximately, the current user has been idle (e.g. like this question), from Python on a Windows machine. To do that, I figure I need to compare the result of Ge...
Codex asked 30/3, 2016 at 14:53

4

I am writing a python win32 service below are snippet of my code when i compile the service it works but i need to go to services.msc and start it manually. Is there an option when i install the ...
Lilywhite asked 27/12, 2010 at 13:5

3

I have installed both virtualenv and pywin32 on my Windows 7 64-bit laptop, and each of them seems to work, but not with each other. More specifically, if a virtualenv is active, then running impo...
Braxton asked 16/2, 2013 at 18:24

1

Solved

I am trying to change the directory creation timestamp for a windows system using python. I have a directory that was copied over from another drive and the directory creation times are not preserv...
Mikaela asked 1/2, 2016 at 6:44

4

Solved

I am trying to install pywin32. I downloaded it from sourceforge.net. When I run setup.py install it shows "Unable to find vcvarsall.bat". I Googled about it and found that I have to insta...
Pietra asked 1/2, 2011 at 13:20

1

Solved

I have successfully managed to trigger a callback when a print job is initially requested on the local machine during spooling. However is there anyway with win32print or something similar that may...
Dalmatian asked 29/12, 2015 at 21:51

1

Solved

I have a python script called from a VBA AutoNew() sub in a MS Word 2003 template (.dot) - so it runs every time a document is created from this Word template. A third-party application creates do...
Before asked 24/11, 2015 at 18:54

1

Solved

I use something like the following code to send emails automatically in Python. How do I make the table look like it was copied from excel into the email (i.e. table formatting)? Currently it tre...
Alphabetize asked 17/11, 2015 at 21:12

1

Solved

I am currently working on a script that needs to write to a .docx file for presentation purposes. I use pandas to handle all my data calculations in the script. I am looking to write a pandas dataf...
Zigzagger asked 22/7, 2015 at 3:8

2

Solved

It seems to install without error using the EXE (in my case pywin32-219.win-amd64-py3.5.exe) however when run the python interpreter and try to "import win32api" I get the following error: Traceba...
Enervate asked 3/10, 2015 at 8:59

1

I've written a service for Windows XP+ in python using the With Extended Service Notifications example code. It works great for detecting user logon/logoff lock screen, and other events. The proble...
Salesclerk asked 9/1, 2012 at 21:53

0

I have a Python program using COM objects that I'd like to run remotely. That program runs well on the local machine, but when I run the program on a remote machine and try to use DCOM objects to r...
Particle asked 24/9, 2015 at 16:2

1

Solved

I have a Python script that works perfectly fine on my development PC. Both are Windows 7 with the same Python version (2.7.9). However on the target machine I get a ValueError: can't forma...
Contribution asked 29/5, 2015 at 11:35

4

I'm trying to convert a simple Python script into a Windows executable. My setup.py script is: from distutils.core import setup import py2exe setup( name = "Simple Script", options = { "py2exe...
Yuzik asked 9/10, 2013 at 19:28

2

Solved

I am trying to remove a user from a security group using Python and pywin32, but so far have not been successful. However I am able to add a user to a security group. from win32com.client import ...
Jewell asked 27/5, 2015 at 15:29

1

Solved

I've added code to a Python package (brian2) that places an exclusive lock on a file to prevent a race condition. However, because this code includes calls to fcntl, it does not work on Windows. Is...
Bioluminescence asked 25/5, 2015 at 14:25

1

Solved

I need to use the pywin32 method of creating a process as a different user and then get the stdout, the stderr and the error code from the spawned process as well as feed input into the process whi...
Liechtenstein asked 10/4, 2015 at 16:27

5

Solved

Here is part of a stack-trace from a recent run of an unreliable application written in Python which controls another application written in Excel: pywintypes.com_error: (-2147352567, 'Exception o...
Griffith asked 6/2, 2009 at 19:18

© 2022 - 2024 — McMap. All rights reserved.