Re: [python-win32] Setting Focus Assist Mode via COM

2023-05-30 Thread Steven Manross
While I haven’t worked on exactly what you are working on: I’d first verify suggest that the application that installs this class needs to be installed on the PC you are trying to create the automation from, because “Class not Registered” isn’t a python error, and it talks more directly to the

Re: [python-win32] unknow solution

2023-05-30 Thread Steven Manross
While I’ve done word automation in the past, is it possible that there’s any issues with the word application installation itself? Or maybe you might have multiple scripts trying to open/write files simultaneously? As well, I might consider looking at task manager on your web server to see if

Re: [python-win32] makepy.py "Some COM library"

2023-05-30 Thread Steven Manross
C:\Python39\Lib\site-packages\win32com\client>python -c "from win32com.client.gencache import EnsureDispatch; EnsureDispatch('ADODB.Connection.6.0'); That code seems to generate a directory in the correct path in both 3.9 and 3.11

Re: [python-win32] makepy.py "Some COM library"

2023-05-30 Thread Mark Hammond
Does something like `python -c "from win32com.client.gencache import EnsureDispatch; EnsureDispatch('ADODB.Connection.6.0');` work? That should generate directly into the expected output directory. Mark On 2023-05-30 1:44 p.m., Steven Manross wrote: Command I ran:

[python-win32] makepy.py "Some COM library"

2023-05-30 Thread Steven Manross
Command I ran: C:\Python311\Lib\site-packages\win32com\client>python makepy.py "ADODB.Connection.6.0" Output: Generating to C:\Users\someuser\AppData\Local\Temp\13\gen_py\3.11\B691E011-1797-432E-907A-4D8C69339129x0x6x1.py Building definitions from type library... Generating... Importing module