Re: [python-win32] win32com.server failure: Is debugging possible?

2016-08-27 Thread Zachary Turner via python-win32
Have you tried using PTVS and attaching to process with the Python debug engine enabled? Then you can set a breakpoint in managed code and look for calls to sys.exit On Sat, Aug 27, 2016 at 7:23 AM Bob Hood wrote: > On 8/25/2016 9:36 PM, eryk sun wrote: > > On Fri, Aug 26, 2016 at

[python-win32] File monitoring additional information user, process and PID

2016-12-02 Thread colin brice via python-win32
appreciated  Thanks!Col___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

[python-win32] Sometimes, oleobj is returned instead of dispobj

2017-07-23 Thread Ivan Pozdeev via python-win32
and there's no earthy need to do so that I can see, maybe a fix is in order? | -- Regards, Ivan _______ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

[python-win32] pythonservice.exe doesn't register

2017-11-05 Thread Pavel Bychikhin via python-win32
Dear Community, I'm trying to register pythonservice.exe as it's said in the PyWin32 documentation, but getting errors: C:\Program Files\Python35\Lib\site-packages\win32>pythonservice.exe /register Registering the Python Service Manager... Registration failed as sys.winver is

Re: [python-win32] pythonservice.exe doesn't register

2017-11-05 Thread Pavel Bychikhin via python-win32
I wrote a simple service and it works. Registration doesn't seem to be needed. Sorry for silly question Best regards, Pavel Bychikhin Original Message *Subject: *pythonservice.exe doesn't register *From: *Pavel Bychikhin *To: *python-win32@python.org *Date: *10/31

[python-win32] COM Automation: Problem Accessing Property of Object

2018-05-22 Thread Emre CETIN via python-win32
Hi, I've been looking for a solution to this question for some time now. Hopefully you could help me out. There's a program (Golden Software Surfer) that I have successfully automated using Python COM. I normally am able to control every portion I need. The part I have trouble ac

Re: [python-win32] COM Automation: Problem Accessing Property of Object

2018-05-22 Thread Emre CETIN via python-win32
0C02A351Cx0x1x4' has no attribute 'CLSIDToClassMap' Any idea of what this is and how to solve it? E m r e On Tuesday, May 22, 2018, 8:14:34 PM GMT+3, Tim Roberts wrote: Emre CETIN via python-win32 wrote: > Hi, I've been looking for a solution to this

Re: [python-win32] COM Automation: Problem Accessing Property of Object

2018-05-22 Thread Emre CETIN via python-win32
Hi again, I solved the unexpected error I just posted by following this link: https://mail.python.org/pipermail/python-list/2008-July/509467.html There is said to: "Just in case, could you delete the contents of your gen_py directory (probably in %TEMP%\gen_py)"That did it. Now I was ab

Re: [python-win32] COM Automation: Problem Accessing Property of Object

2018-05-22 Thread Emre CETIN via python-win32
much during for all your help! Best regards, E m r e On Tuesday, May 22, 2018, 11:21:35 PM GMT+3, Emre CETIN wrote: Hi again, I solved the unexpected error I just posted by following this link: https://mail.python.org/pipermail/python-list/2008-July/509467.html There is said to: "

[python-win32] COM: control menu bar

2018-09-24 Thread Emre CETIN via python-win32
Hi, I am writing a script to automate a program named Golden Software Surfer. I am using import win32com.client in Python during this process. At one point though i can not get past a certain step of my code. The reason is because Surfer's automation utility (Scipter) does not allow that

Re: [python-win32] COM: control menu bar

2018-09-25 Thread Emre CETIN via python-win32
. I'm still stuck :/ E m r e On Tuesday, September 25, 2018, 1:33:01 AM GMT+3, Simon McConnell wrote: I haven't used it myself but I believe this is what pywinauto does:  http://pywinauto.github.io On Tue, 25 Sep 2018 at 02:04 Emre CETIN via python-win32 wrote: Hi, I am writ

Re: [python-win32] COM: control menu bar

2018-09-28 Thread Emre CETIN via python-win32
d. E m r e On Tuesday, September 25, 2018, 5:40:49 PM GMT+3, Emre CETIN via python-win32 wrote: Hello Simon. Thank you for your response. I had read of pywinauto but hadn't used it before. After your advise i have been working on it for hours. But unfortunately i can not get th

Re: [python-win32] COM: control menu bar

2018-09-30 Thread Emre CETIN via python-win32
nted: Edit | Select All. It provided me with the following line: WM_COMMAND wNotifyCode:0 (sent from a menu) wID:57642. How can I use this class ID (57642) in Python to act as if it was clicked/pressed? E m r e On Saturday, September 29, 2018, 1:55:37 AM GMT+3, James Scholes wrote: Emre

[python-win32] How to obtain printer HANDLE as int in Python

2018-12-10 Thread paolo bonatti via python-win32
Hi all I'm trying to print PDF documents with pdfix sdk utilizing win32print. This PDF library requires printer HANDLE value as int directly not as a PyObject.  Is there any way to obtain printer HANDLE value in Python code?(attached is a sample) Thanks Paoloimport os import win32print, wi

[python-win32] Performing ReplyAll to outlook email message

2019-03-15 Thread Ahmed Matar via python-win32
Hi, I am trying to perform a reply all to an email message that I have passed into my python script. import win32com.client __OUTLOOK = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI") __MSG = __OUTLOOK.OpenSharedItem(sys.argv[1]) emailBody = __MSG.

[python-win32] Retrieve Windows Notifications With pywin32

2019-06-02 Thread DAI VU via python-win32
Hi Professionals, I am new to python/pywin32. I have a task to check/retrieve/click on some notifications in the "Action Center" posted by a particular windows app. Can I use python/pywin32 for this? Are there sample codes that I can take a quick look? Also, where can I find the DOC f

Re: [python-win32] Retrieve Windows Notifications With pywin32

2019-06-05 Thread DAI VU via python-win32
Hi Tim, Thank you for the response. I need to deal with toast notifications. I am not sure if that answer your question. Regards,David On Sunday, June 2, 2019, 9:05:32 PM PDT, Tim Roberts wrote: On Jun 2, 2019, at 6:06 PM, DAI VU via python-win32 wrote: ]I am new to python/pywin32

[python-win32] Word Application saving to PDF

2019-10-08 Thread Holland, James via python-win32
I'm trying to open some rtf files to Word and then save as PDFs. I'm running Windows 10 65 bit -- Word 2016 is installed on my computer. Python 3.6.0 import os,os.path import img2pdf import win32com.client input_dir = "G:/MHOShare/MHO Staff/James Holland/TempDump/CindyTest/RTFt

Re: [python-win32] printing hard copies

2020-02-24 Thread Aidan Carter via python-win32
Not sure if this is the appropriate place for this question, but I was wondering how one prints (hard copies, with an actual printer) PDF documents using python. For example, if I want to write a script to automatically print hard copies of pdfs saved on my computer. I have tried to search

[python-win32] pywin32 has different behavior when running from * .exe or * .py

2020-06-21 Thread andrei andrei via python-win32
I have a Python project developed by a colleague, in which pywin32  is used to control the application: CANoe from Vector. When he is running the *.py script from PyCharm (2019.2.5) everything is ok, if he used auto-py-to-exe to convert the python script to *.exe, and then he executes the *.exe

[python-win32] Getting web credentials in Win10 with pywin32

2020-08-04 Thread Mr Hat via python-win32
Hi, I just started using python on Win10 (I'm a linux native) and wanted to store and retrive web credentials like vauldcmd.exe would, but I'm hitting a wall. Maybe I'm just to stupid to understand the api, but has anyone already done this? My guess was using wincred.CredEnume

[python-win32] Use TPM from Crypto API

2020-11-22 Thread Antoine FERRON via python-win32
Hello pywin32 maintainers and enthusiasts, I intend to use a TPM on Windows to generate, store and sign, through the win32 CNG API (NCryptCreatePersistedKey (https://docs.microsoft.com/en-us/windows/win32/api/ncrypt/nf-ncrypt-ncryptcreatepersistedkey) and NCryptSignHash) but within a Python

Re: [python-win32] Use TPM from Crypto API

2020-11-23 Thread Antoine FERRON via python-win32
On Nov 22 2020, at 8:14 pm, Tim Roberts wrote: > On Nov 22, 2020, at 4:16 AM, Antoine FERRON via python-win32 > wrote: > > > > Can you confirm that TPM "Microsoft Platform Crypto Provider" requires > > "CNG", and pywin32 is only "CAPI" ca

[python-win32] OutlookAddin.py msoControlButton Caption not working

2021-06-20 Thread Premanshu Basak via python-win32
Hi team, I tried running the python demo code "OutlookAddin.py" which comes with win32com as a demo outlook com addin. I will still share the code below. My question here is when I run, it does adds a addin button on my Outlook 2016. However there is no Caption on it. I will have to

[python-win32] Pywin32 local variable

2021-08-12 Thread Salih KUYUMCU via python-win32
Hello dear authorized, I'm Salih from Abdullah Gül Univercity from Turkey. Now I'm tring to make a project with python and abap. I'm now using the pywin32 for com server in windows. I can send some variables to python from abap and get them. However, I have a problem with loc

Re: [python-win32] Unable to detect shutdown

2022-03-09 Thread Antoine FERRON via python-win32
I would recommend that you work with an object from a class, and using def __del__(self): I think when Windows shutdown, it send a stop/quit signal to all processes. When your Python is stopped by the OS, it can stop gracefully, and write the info in the file to backup, before it dies. This

[python-win32] Python 3.11 and pywin32 304

2022-05-11 Thread Scorby, Gary via python-win32
r use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and FINASTRA. Please refer to the executed contract between you and the relevant member of the FINASTRA group for the identity of the contracting pa

[python-win32] Hi

2022-07-06 Thread osama saadi via python-win32
Dear Sir,I am using colab and try to install pywin32.I used the following code (!pip install pywin32) but I got error. Please can you help me how to install it?Yours SincerelyOsama ___ python-win32 mailing list python-win32@python.org https

Re: [python-win32] [EXT] [ANN] pywin32 build 305 released

2022-11-07 Thread Scorby, Gary via python-win32
The error I reported in 304 still exists in the interactive window for Python 3.11. Is this scheduled to be fixed? Create the function below. Goes bad when you try to call the function. >>> def biff(x): ... x = x + 1 ... >>> biffFailed to format the args Traceback (mos

Re: [python-win32] python 3.8 Alternative of py2exe for com server

2022-12-15 Thread Antoine FERRON via python-win32
there is any alternative to build a com server and freeze it > in python 3.8 > > regards, > Matteo > > > _______ > python-win32 mailing list > python-win32@python.org > https://mail.python.org/mailman/listinfo/python-win32 > ____

Re: [python-win32] How to enable events for Python Active Scripting?

2023-03-13 Thread Wuping Xin via python-win32
ilto:mhamm...@skippinet.com.au>> To "Wuping Xin" mailto:wup...@caliper.com>> Cc "Python-win32@python.org<mailto:Python-win32@python.org>" mailto:Python-win32@python.org>> Date 3/13/2023 8:45:37 PM Subject Re: [python-win32] How to enable events for Py

Re: [python-win32] How to enable events for Python Active Scripting?

2023-03-13 Thread Wuping Xin via python-win32
ally create the Source/EventSink connection. Wuping -- Original Message -- From "Mark Hammond" mailto:mhamm...@skippinet.com.au>> To "Wuping Xin" mailto:wup...@caliper.com>> Cc "Python-win32@python.org<mailto:Python-win32@python.org>" mail

Re: [python-win32] How to add citations to a word document

2023-03-16 Thread Ryan Dikdan via python-win32
edit or unprotect the field would be appreciated. I was thinking of deleting and remaking the field, but this duplicates the references I think. Yours truly, Ryan Dikdan ____ From: Steven Manross Sent: Wednesday, March 1, 2023 6:43 PM To: Ryan Dikdan ; python

Re: [python-win32] How to enable events for Python Active Scripting?

2023-03-17 Thread Wuping Xin via python-win32
.com.au>> To "Wuping Xin" mailto:wup...@caliper.com>> Cc "Python-win32@python.org<mailto:Python-win32@python.org>" mailto:Python-win32@python.org>> Date 3/14/2023 12:47:27 AM Subject Re: [python-win32] How to enable events for Python Active Scripting? W

Re: [python-win32] How to add citations to a word document

2023-03-19 Thread Ryan Dikdan via python-win32
e two instead, messy, but it'll work hopefully. Yours truly, Ryan Dikdan From: Steven Manross Sent: Friday, March 17, 2023 2:04 AM To: Ryan Dikdan ; python-win32@python.org Subject: RE: How to add citations to a word document A quick googl

Re: [python-win32] win32api.pyd will be block by smart app control in win11

2023-04-14 Thread Antoine FERRON via python-win32
e to do so). _ Antoine FERRON Président — BitLogiK bitlogik.fr (https://bitlogik.fr) — PGP Key ID#22F95B31 (https://keys.openpgp.org/search?q=antoine.ferron%40bitlogik.fr) On Apr 14 2023, at 11:03 am, Liu Gin wrote: > > I pack my python code into exe, and run in win11 with Smart App Contro

[python-win32] win32com, server/policy.py bug? policy.py Line 639

2023-04-16 Thread Wuping Xin via python-win32
== -2147352572 or args[0] == None): return func() else: return func(*args) ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32com, server/policy.py bug? policy.py Line 639

2023-04-16 Thread Wuping Xin via python-win32
) Then we can make VBA, Delphi, C++ all clients happy. Agree? Should I submit a pull request? Wuping -- Original Message -- From "Wuping Xin" mailto:wup...@caliper.com>> To "Mark Hammond" mailto:mhamm...@skippinet.com.au>> Cc "Python-win32@pyth

Re: [python-win32] win32com, server/policy.py bug? policy.py Line 639

2023-04-17 Thread Wuping Xin via python-win32
Thanks. I'll submit a PR. When calling from a Delphi COM client (using OleVariant ), arg[0] will be set by Delphi a value of 0x8002000C, when the target Python method has NO argument (i.e., taking only "self"). This makes args non-empty. When calling from a C++ MFC/COM client,

Re: [python-win32] win32com, server/policy.py bug? policy.py Line 639

2023-04-17 Thread Wuping Xin via python-win32
I created a new issue (with sample Delphi project to replicate the issue, including the Python source file where the COM server is defined): https://github.com/mhammond/pywin32/issues/2043 And I submit a PR: https://github.com/mhammond/pywin32/pull/2044 Thank you. Wuping -- Original

[python-win32] Setting Focus Assist Mode via COM

2023-05-29 Thread name zero via python-win32
;, clsctx=pythoncom.CLSCTX_LOCAL_SERVER) fails with "pywintypes.com_error: (-2147221164, 'Class not registered', None, None)" Thank you and best regards! _______ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

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

2023-05-31 Thread name zero via python-win32
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 fact that the appropriate class from the software you are trying to automate isn’t on the computer you are running python from: so either you

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

2023-06-01 Thread name zero via python-win32
the C++ sample code you mentioned and consume that via ctypes, or come up with some wrapper objects you expose via a new Python extension DLL. If you're really determined, you could add pywin32 style support for the interfaces in a new DLL without too much grief. (But it is a fairly tedious

[python-win32] Python Active Scripting Error - should I ignore it?

2023-06-29 Thread Wuping Xin via python-win32
When I running a Python Active Script, DebugView captured the following errrors - any advice? [22076] File "C:\Users\.\AppData\Local\Programs\Python\Python39\lib\site-packages\win32comext\axscript\client\framework.py", line 729, in SetScriptSite [22076] from . import de

Re: [python-win32] Python Active Scripting Error - should I ignore it?

2023-06-29 Thread Wuping Xin via python-win32
OK, I think this is a bug of pywin32, Line 37 of \win32comext\axdebug\documents.py, class DebugDocumentText( gateways.DebugDocumentInfo, gateways.DebugDocumentText, gateways.DebugDocument gateway.DebugDocumentText already inherits from gateway.DebugDocument. This would cause Python to

[python-win32] PythonService was unable to locate the service manager

2024-01-11 Thread Jacob Nolan via python-win32
event log for details.** * Here is the output from event viewer application log: |The description for Event ID 14 from source Python Service cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or

Re: [python-win32] PythonService was unable to locate the service manager

2024-01-12 Thread Jacob Nolan via python-win32
security permissions for pythonservice.exe in the root python directory. SYSTEM and Admin users have full control. *Jacob Nolan* *Gayner Technical Services* Phone: 0437210168 Email: j...@gaynertechnicalservices.com.au On 1/12/24 01:19, Mark Hammond wrote: The "" part sounds like it

Re: [python-win32] PythonService was unable to locate the service manager

2024-01-18 Thread Jacob Nolan via python-win32
E: is just a local harddrive. The full python install and files under the E: drive is accessible for both the local SYSTEM user, my user and administrator. It is configured to run as the Local System Account. I am successfully able to install the service initially via admin command prompt

[python-win32] Dispatch vs EnsureDispatch performance

2024-04-17 Thread Sven Bardos via python-win32
er() print(f"Time ellapsed (early): {end - start}s") EnsureDispatch is a little bit slower ~4.2s compared to ~4.0s. If I don't get a performance boost with EnsureDispatch, is there even a point using it? Thanks, Sven ___ python-win32 mailing list python

[python-win32] pythonservice.exe registration failed used by another process

2024-04-25 Thread Jacob Nolan via python-win32
Hi all, I've been having a reoccurring error across multiple windows installs and python versions (3.9.*-3.11.*) when performing an install of a python windows service. This is the result of calling *python service_config.py install *on 3.9.5 The error is: |*copying host ex

Re: [python-win32] Dispatch vs EnsureDispatch performance

2024-07-17 Thread Sven Bardos via python-win32
e of upsetting some COM objects - eg, when `foo.bar` is seen, > EnsureDispatch knows for sure that `bar` is a method, but dynamic dispatch > doesn't know if the resulting object is going to be called or not. > > HTH, > > Mark > On 2024-04-17 2:07 a.m., Sven Bardos via pytho

Re: [python-win32] Using relative python path in exe files generated by `ScriptMaker`

2024-12-10 Thread Ilya Kazakevich via python-win32
x27;t do that, so we decided to create a `zip` archive and download it on agent. It works and it is pretty fast, and `python.exe` itself is portable. The only problem is those scripts like `poetry.exe`. ___ python-win32 mailing list python-win32@python.org

[python-win32] Using relative python path in exe files generated by `ScriptMaker`

2024-12-09 Thread Ilya Kazakevich via python-win32
how to fix it in a proper way? Thank you in advance, Ilya. _______ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

[python-win32] Failed to load Win32uiApplicationInit

2025-04-05 Thread Andrea Gavana via python-win32
Dear PyWin32 users, We have been developing and distributing on Windows a large application over the years. The application is of course in Python, and it gets Cythonized and bundled up with py2exe for distribution. Up until today everything was working fine. We have made no change to any of the

Re: [python-win32] Trouble with list iteration / comprehension for wrapped COM objects

2025-04-18 Thread Mark Hammond via python-win32
I'm not sure what's going wrong here. Does fetching the list of workspaces as a simple list work? That would be a workaround, and feel free open an issue at https://github.com/mhammond/pywin32 since it shouldn't break that way. Cheers On 2025-04-18 8:33 p.m., dornech via pyt

[python-win32] Python Active Scripting Debug

2025-02-28 Thread Wuping Xin via python-win32
Hi All, I am trying to debug Python Active Scripting, using Visual Studio. I am 100% sure it should work but I just cannot get it work. I've installed the debug symbols of the Python version, and installed Visual Studio Python Native Development tools. I also set the "Debugging

Re: [python-win32] Python Active Scripting Debug

2025-03-03 Thread Wuping Xin via python-win32
Thank you Mark for the response. Appreciate your input. Best Wuping -- Original Message -- From "Mark Hammond" To "Wuping Xin" ; "python-win32@python.org" Date 3/3/2025 10:24:18 AM Subject Re: [python-win32] Python Active Scripting Debug It ha

Re: [python-win32] python-win32 Digest, Vol 258, Issue 1

2025-03-01 Thread Wuping Xin via python-win32
The problem is that for Python 3.11+, the frame object has changed, hence axdebug is not built for it. Question: Would this be fixed any time soon? This feature is definitely needed for Python Active Script debugging. Also even with other Python binding framework such as pybind11, Active

Re: [python-win32] python-win32 Digest, Vol 258, Issue 1

2025-03-01 Thread Wuping Xin via python-win32
Forget it. I figured out. W. X. -- Original Message -- From python-win32-requ...@python.org To python-win32@python.org Date 3/1/2025 12:00:02 PM Subject python-win32 Digest, Vol 258, Issue 1 Send python-win32 mailing list submissions to python-win32@python.org To subscribe

[python-win32] pywin32 in python 64bit-3.7 environment

2022-07-05 Thread De Silva, Thushara via python-win32
Hi, I am working in python 64-bit, 3.7 environment. I want to install pywin32 to conda-environment. "pip install pywin32" installed pywin32 304 to my env. But I cannot "import pywin32" from my jupyter notebook (No Module named 'pywin32'). I assumed, I have to i

[python-win32] Creating splitter

2025-03-27 Thread Juha-Pekka Ahto via python-win32
VERLAPPEDWINDOW | win32con.WS_CLIPCHILDREN hwnd = win32gui.CreateWindow( class_atom, "Python Window", style, 100, 100, 500, 400, 0, 0, 0, None ) win32gui.ShowWindow(hwnd, win32con.SW_SHOWNORMAL) win32gui.UpdateWind

[python-win32] inspect signature for COM object method

2025-07-28 Thread Christoph J. Dorner via python-win32
Hi there, I have simple question that is porbably not really a challenge for experienced Pytohneers: I am struggling to get the signature object for Example: let's assume I have a Python variable representing a EXCEL Workbook object. I want to get an inspect.signature object for the wor

[python-win32] makepy Promlem? pywintypes.com_error: (-2147352573, 'Member not found.', None, None)

2018-10-15 Thread Bloder, Ludwig AVL/AT via python-win32
I have defined an MS COM interface which I want to access from within Python. I therefore have created a wrapper using the 'makepy' utility that come along with the win32com package. [ object, dual, ... ] interface IPuma7ScriptContextEx : IDispatch { : [id(21), helpstri

[python-win32] Python installer for Windows not working on silent installation

2021-02-08 Thread Romulus G | Heimdal™ via python-win32
Hi Guys, I am trying to deploy Python (the latest version) through AD GPO or through SCCM. Since there’s no MSI Installer available on the python.org for the latest versions, I used the python-3.9.1-amd64.exe with the following command line: python-3.9.0.exe /quiet InstallAllUsers=1

<    1   2