Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: how to handle COM Typelib OUT parameters?
Post: RE: how to handle COM Typelib OUT parameters?

after many days I quit. It seems there is no way to code for functions with OUT parameters defined in IDL. My last trying was to import only win32com.client, but the error message is the same: int() ...
Erhy General Coding Help 1 1,993 Jan-26-2019, 10:47 PM
    Thread: enum from typelib
Post: RE: enum from typelib

further I discovered that if I use import win32com.client as COM pl = COM.Dispatch("Erhy.Application") rgbState = COM.constants.RGBworks! So I will try not using the comtypes package
Erhy General Coding Help 2 2,164 Jan-26-2019, 05:37 PM
    Thread: how to handle COM Typelib OUT parameters?
Post: how to handle COM Typelib OUT parameters?

Hello! I try to convert VB-Script to Python script. I use the packages pywin32, comtypes and pythoncom I have problems with function imported from typelib having out parameters e.g. the code with c...
Erhy General Coding Help 1 1,993 Jan-06-2019, 09:34 PM
    Thread: with source file in UTF-8 you have full UNICODE support
Post: RE: with source file in UTF-8 you have full UNICOD...

(Jan-06-2019, 10:31 AM)Axel_Erfurt Wrote: Your editor 'PythonWin' should save it as utf-8in my experience PythonWin stores script file as opened belonging encoding
Erhy General Coding Help 3 3,077 Jan-06-2019, 04:05 PM
    Thread: with source file in UTF-8 you have full UNICODE support
Post: with source file in UTF-8 you have full UNICODE su...

Hello! This is only a message for my solved problem to get UNICODE support. With Windows I code for Python 3.7 with the tool PythonWin which comes with the package pywin32 I had the problem with st...
Erhy General Coding Help 3 3,077 Jan-05-2019, 08:16 PM
    Thread: enum from typelib
Post: RE: enum from typelib

Now I see with comtypes the definitions for enum values can be accessed like global constants e.g. mycmod : MyApp.ColorModel = MyApp.CMYK this with the exception: If the name of the constant is used ...
Erhy General Coding Help 2 2,164 Jan-03-2019, 04:04 PM
    Thread: enum from typelib
Post: enum from typelib

Hello! I try to use a typelib of a COM application. In the Typelib are also enum's defined. Is there a chance to use the enum definitions in python? I tried import comtypes e.g. if I code Quote:mycm...
Erhy General Coding Help 2 2,164 Jan-02-2019, 10:54 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020