Questions tagged [win32com]
win32com is a Python module to interact with Windows COM components. It is part of the Python for Win32 (pywin32) project by mhammond.
win32com
1,904
questions
0
votes
0
answers
38
views
How to register voice for TTS in windows 11?
I have some troubles to use 2 additional voices, in my case i try to use Pablo (Spanish - Spain) and George (English - GB). I develop a app in python/Django, from the front i sent a JSON with the ...
-2
votes
0
answers
48
views
Getting Error while running the below Python Code
import win32com.client
o = win32com.client.Dispatch("Excel.Application")
o.Visible = False
wb_path = r'Input file path'
wb = o.Workbooks.Open(wb_path)
ws_index_list = [3,4,5,6,7,8,9] #...
0
votes
0
answers
15
views
Win32com failing to quit and save
I am using openpyxl in order to populate an excel sheet, but because it would contain formulas, I am trying to use win32com in order to refresh the sheet in order to get the calculated values from it.
...
0
votes
0
answers
36
views
win32com.client.GetObject('SAPGUI') error while connecting to SAP in flask
path = r"C:\Program Files (x86)\SAP\FrontEnd\SAPgui\saplogon.exe"
subprocess.Popen(path)
time.sleep(5)
SapGuiAuto = win32com.client.GetObject('SAPGUI')
...
0
votes
0
answers
27
views
win32com Excel terminating python program out of nowhere
I'm using a library called Excel2Image in order to take a sheet range in excel and save it as a video. This library uses win32com in order to get an excel application.
Inside of my main program, ...
0
votes
1
answer
36
views
Excel Ungrouping data
I am trying to ungroup the data in excel file.
I am not aware of row no which have been grouped.
When I click on 2 on top of file data gets ungrouped.
Is there a way I could do it using python.
I ...
0
votes
0
answers
53
views
Calling Excel Macros in Python
I need help with my python code for the following:
In this network path: “\folder\name\endfile.xlsm”, I have a file called "endfilexlsm" Within this file, I have a macro called “...
1
vote
0
answers
34
views
Windows OS: Win32_PerfRawData_PerfProc_Process Virtual Memory is not matching with resource monitor's Commit Memory
I am trying to pull the Process metrics using Win32_PerfRawData_PerfProc_Process as documented at https://learn.microsoft.com/en-us/previous-versions/aa394323(v=vs.85)
From the document, VirtualBytes ...
2
votes
1
answer
79
views
How can I determine whether a Word document has a password?
I am trying to read word documents using Python. However, I am stuck in places where the document is password protected, as I do not have the password for the file(s).
How can I detect if the file has ...
0
votes
0
answers
30
views
Is it possible to access a shared mailbox from my personal using python win32com?
I am creating a python script to automate a task for me. The task requires me to access a shared outlook mailbox and save an attachment. Although its accessible from my account in the browser version ...
0
votes
1
answer
46
views
(4096, 'Microsoft Outlook', 'The operation failed.', None, 0, -2147287037) error when saving an email to my local machine
I am trying to download some emails from my outlook folder to my local machine as .msg files using the following code.
messages = source_folder.Items
for message in messages:
# Estimate the size ...
0
votes
0
answers
48
views
DLL load failed: The specified module could not be found , win32com.client python library
when I import the win32com.client module i get this error
DLL load failed: The specified module could not be found
the line producing the error is :
\venv\lib\site-packages\win32\lib\pywintypes.py ...
0
votes
0
answers
51
views
Python and SAP GUI Scripting Error : pywintypes.com_error: (-2147221020, 'Invalid syntax', None, None)
I'm trying to write a automation script that does task on SAP. For this I'm using Python and win32com package, I'm getting the following error when I try to connect to SAP.
Traceback (most recent call ...
0
votes
1
answer
72
views
UnProtect DOC and DOCX using WIN32COM with Python
I´m trying to unprotect a word document file using win32com but the code below run without error and not unprotect.
I did some searches here and I have tried some variations with this code but no ...
1
vote
1
answer
132
views
I can't install pywin32
I'm trying to get this program to run:
https://github.com/GavriloviciEduard/ShinyHunter
But I get this error message:
C:\Users\marku\ShinyHunter>python -m poetry install
Installing dependencies ...