Questions tagged [pywin]

pywin is a python module, lightweight launcher and switcher for Windows command line and MSYS/MINGW32

pywin is a python module, lightweight launcher and switcher for Windows command line and MSYS/MINGW32.

52 questions
0
votes
2 answers

How to get the active selected Outlook Mail Object in pywin32?

I want a script which takes the active selected Mail in Outlook and make an new response mail on this. But I can't find a function to get an active or selected object in pywin32. I just found these: message.GetLast() and some similar functions. it…
0
votes
1 answer

Updating large dataframe with around 6500 rows into xlsm file using Xlwings in python

I am trying to update excel file with extension .xlsm with ws[cellid].options(header=False, index=False).value = df.It doesn't contains empty columns or Nan values or any equations.But the same code is working when I try to update few rows.When I…
Ameera
  • 1
0
votes
1 answer

Pywinauto keyboard not recognizing double letters

I am trying to type shortcut ALT + C + C, but only takes first letter ALT + C which in code translates: processId = 0 try: app.connect(process=processId) except: print("issue not found") win = app.window(top_level_only=False,…
Adrian
  • 2,273
  • 4
  • 38
  • 78
0
votes
1 answer

pywintypes.com_error. in Outlook. I am creating an outlook appointment, it errors on assigning time. Says that the object doesn't support method

I have this code: import win32com.client import pythoncom import datetime def saveMeeting(start, end, subject, location, attachments, recipients): outlook = win32com.client.Dispatch("Outlook.Application", pythoncom.CoInitialize()) ns =…
NinoDulay
  • 3
  • 2
0
votes
1 answer

Why does this sleep() function allow this code to run, but fail without it?

The above script is supposed to take in user input as a string. The string will look something like this "120,50" where 120 is x coordinate and 50 is y coordinate. I wrote a function called “judge” that will take the user input, split it in two (x…
zebra14420
  • 51
  • 1
  • 2
  • 7
0
votes
1 answer

No module named 'pywintypes' and also pip not recognized

I am pulling what is left of my hair out, exasperated and have run out of ideas, and I am hoping someone can assist! So, I originally installed python 310 and PyCharm, and some packages like xlwings and everything was working fine. The pip command…
danjuma
  • 51
  • 5
0
votes
0 answers

Could not find a version that satisfies the requirement pywin32 on cpanel

My os is windows 10 where I can install pywin32 without having any problem but When I'm going to install pywin32 on Cpanel(Namecheap) in my Django app then showing the following error. Please notice the image where everything is almost the same…
user11906115
0
votes
0 answers

I am trying to install pywinpty, But Getting below error

Getting below error while installing pywinpty Collecting https://files.pythonhosted.org/packages/b0/2c/11676105f51a7718316cd74186630f4a4cb0efa3530ebf3cfbe0b72e35cb/pywinpty-1.0.1.tar.gz Using…
RAM REDDY
  • 1
  • 2
0
votes
0 answers

python - win32security add ACL for folder in NAS through cross domain access

I am working on an use case to create a folder and add security groups. I am using below code. When i perform this manually to access share path we enter credential and create a folder Post that once I click on security tab, it prompts for…
goe
  • 337
  • 2
  • 14
0
votes
0 answers

Getting InnerText from HTMLElement of WebBrowser using Python and Pywin

I'm trying to get InnerText property of HTMLElement of already opened WebBrowser (from SAP GUI Scripting GuiHTMLViewer object > BrowserHandle > Document) using pywin (win32com) lib on Python. I got a WebBrowser, which have Document property (object…
0
votes
0 answers

python win32com.client outlook.OpenSharedItem replacing spaces with %20

I am using win32com.client to check an email for attachements, if there is an attachment it populates a wxpython listbox with the attachment file name(s). It only works if the email name does not contain spaces. If there are spaces in the file…
mickNeill
  • 346
  • 5
  • 22
0
votes
1 answer

output getting truncated using winrm

There is a script I am running to get disk level information which given below. disk.ps1: Get-WmiObject Win32_DiskDrive | % { $disk = $_ $partitions = "ASSOCIATORS OF " + "{Win32_DiskDrive.DeviceID='$($disk.DeviceID)'} " + …
Vishnu Imp
  • 5
  • 1
  • 7
0
votes
1 answer

Error with installing pywin

Python version: 3.6.0 So I tried to download PyWin using pip, and I got the following error: error I'm not sure what other details to include. I'm using windows 10 64-bit I tried googling around and found nothing to help.
0
votes
1 answer

Python install module and import

I need to import win32wnet in my script. However, the pywin module does not guaranteed to be installed on the machine the script is running. So, in the same *.py script I installed the pywin before the import win32wnet. But, that seems like not…
user1947415
  • 933
  • 4
  • 14
  • 31
0
votes
1 answer

How to change command timeout in pywin32. 'Open' method

I've got the problem using pywin32 library and trying to connect to OLEDB. Traceback Traceback (most recent call last): File "", line 35, in File "", line 31, in ado File "", line 4, in Open …
mailman_73
  • 778
  • 12
  • 29