Skip to main content
The 2024 Developer Survey results are live! See the results

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
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 ...
blackhawk87's user avatar
-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] #...
Alteryx expert's user avatar
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. ...
Treyara's user avatar
  • 47
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') ...
Elysian's user avatar
  • 19
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, ...
Treyara's user avatar
  • 47
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 ...
Rishi Parpyani's user avatar
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 “...
Sam Smith's user avatar
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 ...
V SAI MAHIDHAR's user avatar
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 ...
WhoamI's user avatar
  • 416
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 ...
Brady Ancell's user avatar
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 ...
Prakhar Rathi's user avatar
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 ...
ILyes Haddad's user avatar
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 ...
Nqaba Melapi's user avatar
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 ...
Ricardo Pascoal's user avatar
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 ...
MarkuzZz's user avatar

15 30 50 per page
1
2 3 4 5
127