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...
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...
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...
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...
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'])
...
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...
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...
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...
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
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
© 2022 - 2024 — McMap. All rights reserved.