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

2025-04-19 Thread dornech via python-win32
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 python-win32 wrote: Hi there, I am working on an EXCEL wrapper to "phytonize" access to EXCEL. I create a wrapper class for all objects classes derived fr

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] Trouble with list iteration / comprehension for wrapped COM objects

2025-04-18 Thread dornech via python-win32
would alway be increased. It seems, püywin32 has some special support for list comprehension and index adjustment for COM objects? I haven't worked with an iterator before but is this the solution? Thanks in advance. Best Christoph _______

[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

[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

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] 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] 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

Re: [python-win32] How to correctly handle events using win32com ?

2024-11-29 Thread dornech via python-win32
App.Workbooks.Add() #Create a workbook ws=xlwb.Sheets("Sheet1") #Get the first worksheet xl_events=win32.WithEvents(xlwb,wbEvents) #Add and Event handler # define initalizer keepOpen = True while keepOpen:     time.sleep(0.1)     pythoncom.PumpWaitingMessages() -------- Code2 End

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

[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

[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] __getattr__ Error

2024-03-17 Thread Jannis via python-win32
lation of the client? Or am I looking in the wrong direction? Thank you & Best Regards ioannis ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

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

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

[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

[python-win32] VB6 Listbox methods fail through ROT

2023-10-04 Thread dzzie via python-win32
rm1.caption = "test" form1.Move(0) Set List1 = GetObject("PyComTest.List1") List1.AddItem "***** VBS SAYS HELLO ***" Currently using a vb6 standard exe manually adding objects to the ROT, and python 311 exe to run the

Re: [python-win32] AddObject from C

2023-09-19 Thread dzzie via python-win32
ey = LCase(StringFromPointer(buf))     Set o = SharedObjects(key)          If Not o Is Nothing Then     HostResolver = ObjPtr(o)     Else     HostResolver = 0     End If   End Function _______ python-win32 mailing list python-win32@python.org htt

[python-win32] AddObject from C

2023-09-19 Thread dzzie via python-win32
features. Right now I can createobject() and getobject() in python using the new namespaces. Experimenting with using this for app automation similar to the microsoft script control and its addobject functionality. Bringing the COM code into my helper dll to see if I can get around not being able

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] 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] 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

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

[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] 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

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-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

[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] 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] Pywin32 Windows Service not responding

2023-03-25 Thread jeremy.farmer1206 via python-win32
event import servicemanager import socket import time import os import sys class MyService(win32serviceutil.ServiceFramework): _svc_name_ = 'MyPythonService' _svc_display_name_ = 'My Python Service' _svc_description_ = 'This is a sample Python

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] 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-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-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 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] 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] [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-win32 Digest, Vol 232, Issue 1

2022-10-11 Thread monetclause--- via python-win32
I've had my challenges with 3.10 and stayed on 3.9, with good results. Sent from Android On Tue, Oct 11, 2022 at 11:00, python-win32-requ...@python.org wrote: Send python-win32 mailing list submissions to     python-win32@python.org To subscribe or unsubscribe via the World Wid

[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

[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] 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

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

Re: [python-win32] Clipboard Documentation

2021-12-01 Thread gw1500 via python-win32
rmats:     formats.append(standard_formats[format])     else:     formats.append( win32clipboard.GetClipboardFormatName(format) )     finally:     win32clipboard.CloseClipboard()     return formats ___ python-win32 mailin

Re: [python-win32] Clipboard Documentation

2021-12-01 Thread gw1500 via python-win32
On 12/1/2021 3:07 AM, Tim Roberts wrote: On 11/30/21 7:04 AM, gw1500 via python-win32 wrote: Thanks for the reply. I read about that but was hoping to use pywin32. I can see now the folly of that decision. I have a working minimal test but am looking for something a bit more automated. I

Re: [python-win32] Clipboard Documentation

2021-11-30 Thread gw1500 via python-win32
are a pain to work with, and of course don't work at all on other systems. _______ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32 _______ python-win

[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

[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] Opening existing memory mapped files with pywin32

2021-02-16 Thread rhyslloyd1 via python-win32
Hello. Sorry if this is the wrong place to ask my question. I am trying to open a memory mapped file using Python. I originally used the "mmap" module from Python however I had issues with it because I had to use a fixed size for the file even though my goal was to open an existi

[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

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] 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

[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] 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

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] 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] 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] 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

[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] 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] 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] wincom32.client problem?

2018-10-02 Thread mastro59 via python-win32
I ahve been trying to communicate with an Instrument GUI using python and a COM Object. This is quite simple using wincom32, but somethind with this client required additional extension not needed in other lunguages. I wander id someone here has experience and can explain how to solve this.in VBS

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

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-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

[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 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: "

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
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

[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] 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] 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

[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] 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

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

Re: [python-win32] Python in Visual Studio

2016-04-16 Thread Zachary Turner via python-win32
The debugger is good too. I don't know of any other tool that lets you seamlessly step between Python and native code when debugging a program which embeds Python On Sat, Apr 16, 2016 at 5:23 PM Alexander Walters wrote: > As a total aside, PTVS (part of the base VS 2015 install, IIRC

[python-win32] Python in Visual Studio

2016-04-16 Thread Mark Lawrence via python-win32
For anybody who might be interested this is a podcast featuring Steve Dower from Microsoft https://talkpython.fm/episodes/show/53/python-in-visual-studio -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

[python-win32] pywintypes.com_error- no data source was provided when sending outlook attachment

2016-03-20 Thread Joe via python-win32
Hello,Iam trying to send an email through outlook 2010 on a win 7 64 bit oswith python 2.7 32 bit and win32com 32 bit. I am using the same codeexample found in many Google search results. This chunk of code willrun fine if I rem out the attachment, but once I try adding theattachment, I get an

[python-win32] Problem: methods defined in type library's base class are not accessible in inherited class objects of the type library

2016-02-18 Thread Indranil Sinharoy via python-win32
Hi all, I am a relatively new user of pywin32 package, but not Python. I have an application (written in C/#, as I understand) that provides a COM interface for using with other languages such as Python. I am using the pywin32 library to communicate with the application and it works fairly

Re: [python-win32] Figuring out why a window is losing focus

2016-02-08 Thread Zachary Turner via python-win32
It's included as part of Visual Studio. Download community edition, it should be there. On Mon, Feb 8, 2016 at 7:33 PM reckoner wrote: > > Where can I safely download this Spy program you are all talking about? > > Thanks! > > > > On 2/8/2016 9:00 AM, python-w

Re: [python-win32] Figuring out why a window is losing focus

2016-02-07 Thread Zachary Turner via python-win32
6 at 10:39 PM, Zachary Turner > wrote: > >> Why do you need to use Python? Sounds like this is done very easily with >> Spy++ >> >> On Sun, Feb 7, 2016 at 10:12 AM Ram Rachum wrote: >> >>> Hi everybody, >>> >>> There's a problem in

Re: [python-win32] Figuring out why a window is losing focus

2016-02-07 Thread Zachary Turner via python-win32
Why do you need to use Python? Sounds like this is done very easily with Spy++ On Sun, Feb 7, 2016 at 10:12 AM Ram Rachum wrote: > Hi everybody, > > There's a problem in my Windows 7 machine that I want to diagnose using > Python. > > Once in a while, I'm noticin

Re: [python-win32] Building my own C extension

2015-11-04 Thread Zachary Turner via python-win32
Two questions: 1) Are you embedding this extension in your own application or do you only need to be able to load it into a stock Python distribution? 2) Is Python 3.5 out of the question? On Wed, Nov 4, 2015 at 5:10 PM Ken Brooks wrote: > I have joined this list because I need to learn how

Re: [python-win32] Windows 10

2015-10-26 Thread Zachary Turner via python-win32
and vice versa. They are synonyms. On Sun, Oct 25, 2015 at 11:24 PM eryksun wrote: > On 10/25/15, Laura Creighton wrote: > > > > Can I suggest a mailing list name change to reflect 64 bit windows? > > python-windows would be my suggestion .... > > I agree. This list is

[python-win32] PYTHON DEVELOPER with 3+ years Exp. ( Job Location : Hyderabad )

2015-09-24 Thread Apple Informatics via python-win32
Hi  We are looking for a PYTHON DEVELOPER  with  3+ years Exp. ·      Strong in Python· Django framework· Good at Rest API·  Decent communication skills· 3+ Years’ experience· Full time – Immediate Joinee            Job Location

Re: [python-win32] How to invoke Python program from Windows service?

2012-06-22 Thread python
>> For reference, this is the kind of pattern I use when writing Windows >> Services in Python: > This is incredibly useful. Thank you. +1 Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/

[python-win32] DIR reports file timestamp and size, but os.path.getctime(), os.path.getsize() raise WindowsError [Error 5] Access is denied

2012-05-21 Thread python
tamps and file sizes for the above files. Background; 64-bit Windows 7; 32-bit Python 2.7.2 Any ideas on how I can retrieve timestamps and file sizes like DIR without raising exceptions? Thank you, Malcolm ___ python-win32 mailing list python-w

Re: [python-win32] Passing an object to a process

2012-03-14 Thread python
What about logging to a database? Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Detecting user (in)activity and changing process prioritization?

2011-10-31 Thread python
e the priority of a running process, or can the priority of a Windows process only be set when the process is launched? Thanks, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32com in a 64bit laptop

2011-10-30 Thread love python
I got python from: www.python.org/download and choose •Python 2.7.2 Windows Installer (Windows binary -- does not include source) It should be a good version too, right? What I did is to remove all the 64bit versions and reinstall these software systems for win32. Thanks in advance. Bill

Re: [python-win32] win32com in a 64bit laptop

2011-10-30 Thread love python
Thanks for the reply. I removed the Softwares and reinstall them with 32bit again. But I have the following questions: 1. When installing xlutils1.4.1.win32, I got the following errors: couldn't create key for i) xlutils-py2.7; ii) python 2.7 xltuils-1.4.1 Then I got the error "Couldn

[python-win32] win32com in a 64bit laptop

2011-10-28 Thread love python
I just got a 64bit laptop and install python 2.7.2 (Windows AMD64 / Intel 64 / X86-64 binary) and other packages. When i run the previous file, I find to import win32com.client bc the program needs to read a word document as follows: app = win32com.client.gencache.EnsureDispatch

Re: [python-win32] manipulating service action restart behavior?

2011-08-10 Thread python
Andrew, Thanks for sharing the solution! Regards, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32print.StartDocPrinter

2011-07-11 Thread python
Anthony, Dabo (dabodev.com) is an open source GUI framework built on top of wxPython. Dabo has a very impressive report writer. Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Detect new/changed file in a folder

2011-03-08 Thread python
Tim, Ben and Brian, Thank you all for your posts - excellent information(!!!). You have all answered my question. Cheers, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Detect new/changed file in a folder

2011-03-08 Thread python
ith a simple polling technique that I should be aware of? Thank you, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] DVCS options for pywin32

2011-02-07 Thread python
s, Malcolm _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Prevent a (Tkinter) window from maximizing via win32 api call?

2010-12-02 Thread python
ove the window's border and titlebar (both of which I would like to keep). References 1. mailto:pyt...@bdurham.com ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

  1   2   >