Re: [python-win32] Context menu handler as executable

2016-08-04 Thread Thomas Heller
Am 26.07.2016 um 19:35 schrieb Gertjan Klein: Tim Roberts wrote: Gertjan Klein wrote: I am working on a Windows Explorer context menu handler; Windows 10, Python 3.4 (both 64 bit), pywin32 version 219 installed (no virtual environment). The handler is working fine when running it as a Python s

Re: [python-win32] Using pip to install pywin32

2015-02-20 Thread Thomas Heller
Am 20.02.2015 um 17:58 schrieb Preston Landers: Actually that gist wouldn't help much since it uses pywin32, the thing we're trying to install. (derp!) There may be another way though. Sure, you could port the gist to ctypes instead of pywin32. However, the problem is that pip doesn't run post

Re: [python-win32] extension modules and msvc version

2015-02-20 Thread Thomas Heller
Am 20.02.2015 um 17:41 schrieb Zachary Turner: Does anyone understand the technical reasons why an extension module must be compiled with the same version of msvc as python itself? Are there any workarounds? It's really quite an inconvenience. If the reason is because python27.dll and the extens

Re: [python-win32] Using pip to install pywin32

2015-02-20 Thread Thomas Heller
Am 20.02.2015 um 15:07 schrieb Vernon D. Cole: Pywin32 is mostly written in C, and has lots of dependencies and weird build requirements. In order to compile it, you must have the same C compiler that your release of Python was built with. For older Python versions (like 2.7) that compiler is ob

Re: [python-win32] python 3.4 and pywin32

2014-03-25 Thread Thomas Heller
te: all this is with 32-bit python, on win7 64-bit. On Mon, Mar 24, 2014 at 10:38 AM, Thomas Heller mailto:thel...@ctypes.org>> wrote: Am 21.03.2014 21 :22, schrieb Thomas Heller: [this has also been sent to the python-dev mailing list] With python 3.4 and pywi

Re: [python-win32] python 3.4 and pywin32

2014-03-24 Thread Thomas Heller
Am 21.03.2014 21:22, schrieb Thomas Heller: [this has also been sent to the python-dev mailing list] With python 3.4 and pywin32 version 218 it is only possible to import win32com or win32api when pywintypes has been imported before. False alarm: after cleaning everything up and installing

Re: [python-win32] python 3.4 and pywin32

2014-03-24 Thread Thomas Heller
rnon Inline image 1 On Fri, Mar 21, 2014 at 2:22 PM, Thomas Heller mailto:thel...@ctypes.org>> wrote: [this has also been sent to the python-dev mailing list] With python 3.4 and pywin32 version 218 it is only possible to import win32com or win32api when pywintypes has been impor

[python-win32] python 3.4 and pywin32

2014-03-21 Thread Thomas Heller
[this has also been sent to the python-dev mailing list] With python 3.4 and pywin32 version 218 it is only possible to import win32com or win32api when pywintypes has been imported before. I have no idea if this is a bug in pywin32 or in Python 3.4. Does anyone know more? Thanks, Thomas _

Re: [python-win32] Programmatically turn off mouse auto-positioning

2014-02-04 Thread Thomas Heller
Am 04.02.2014 19:51, schrieb reckoner: Hi, In the control panel, under mouse settings, there is a checkbox to automatically move the mouse to the "default button in a dialog box". Is there a way to programmatically turn this off/on using Python? I'm referring to windows 7/8. Thanks! SystemPa

Re: [python-win32] Access coclass interface?

2014-01-10 Thread Thomas Heller
Am 10.01.2014 15:26, schrieb Khoroshyy Petro: Hi list, I try to control a setup which consist of a monochromator and a CCD camera. [...] Now if I try to access a monochromator coclass from another libray in the same way I get com_error: (-2147221005. instrument = win32com.client.Dispatch("JY

[python-win32] Several, totally isolated Python interpreters in the same process

2011-12-19 Thread Thomas Heller
I made an experiment that I wanted to share because it is imo kind of cool: I managed to embed a second Python interpreter in a Python process, with help of WinSxS (WinSxS is a Microsoft technology that allows to isolate plugins from other plugins, or from the calling process). The second interp

Re: [python-win32] setting title bar of cmd.exe

2011-07-31 Thread Thomas Heller
Am 30.07.2011 17:56, schrieb Ethan Furman: Thomas Heller wrote: windll.kernel32.SetConsoleTitleA("foobar") -or- windll.kernel32.SetConsoleTitleW(u"spam") Thanks again for the help. I used this to help answer a Stack Overflow question: http://stackoverflow.com/questions/

Re: [python-win32] setting title bar of cmd.exe

2011-07-29 Thread Thomas Heller
Am 29.07.2011 19:19, schrieb Thomas Heller: Am 29.07.2011 19:15, schrieb Ethan Furman: When running commands from cmd the title bar will update to relect the currently running command. Is there a way to have python scripts run from cmd.exe to update the cmd title bar? ~Ethan~ from ctypes

Re: [python-win32] setting title bar of cmd.exe

2011-07-29 Thread Thomas Heller
Am 29.07.2011 19:15, schrieb Ethan Furman: When running commands from cmd the title bar will update to relect the currently running command. Is there a way to have python scripts run from cmd.exe to update the cmd title bar? ~Ethan~ from ctypes import windll windll.kernel32.SetConsoleTitleA("

[python-win32] Threads, COM, gc

2011-05-26 Thread Thomas Heller
I have to fix a tricky problem that we recently discovered in our software. We have a multithreading Python program that uses a lot of COM objects. COM objects have the requirement that they must only be used in the COM apartment where they have been created. Different threads often or even most

Re: [python-win32] Walking the shell namespace in Python

2010-05-07 Thread Thomas Heller
Thomas Heller schrieb: [...] > > What I find strange if this: What I fond strange is this: > >>>> desktop.GetDisplayNameOf(pidl, SHGDN_FORPARSING) > u'C:\\Python26\\Lib\\site-packages' >>>> desktop.GetDisplayNameOf(pidl, SHGDN_NORMAL) > u'P

Re: [python-win32] Walking the shell namespace in Python

2010-05-06 Thread Thomas Heller
Tim Golden schrieb: > On 05/05/2010 20:33, Thomas Heller wrote: >> Does someone have example code snippets how to walk the shell namespace in >> Python? >> I'm lost in all these pidls and folders. > > The code below uses the pywin32 functions to walk. Because the

[python-win32] Walking the shell namespace in Python

2010-05-05 Thread Thomas Heller
Does someone have example code snippets how to walk the shell namespace in Python? I'm lost in all these pidls and folders. Basically I want to implement a combobox similar to the 'explorer bar' in Windows explorer; given a certain directory - say 'c:\Python26\lib\site-packages' I want to find

Re: [python-win32] finding pythonXX.dll?

2010-05-04 Thread Thomas Heller
Bill Janssen schrieb: > Roger Upole wrote: > >> Bill Janssen wrote: >> > Is there anyway to tell, from inside Python, where the python26.dll file >> > is? I've got to install the win32 dlls in the same directory. >> > >> > I see that sys contains a symbol "dllhandle", but that's just a >> > nume

Re: [python-win32] pywintypes.com_error: -2147417846 "Application busy"

2009-11-25 Thread Thomas Heller
Alexander Eisenhuth schrieb: > Hello list, > > I'm having a problem with a python COM Excel client that rarely gets the > exception pywintypes.com_error with the error code -2147417846. (means Excel > is > busy) Here the python code of the exception handling: > > [...] > try: > # write a

Re: [python-win32] ANN: PyGUI Mailing List

2009-11-21 Thread Thomas Heller
Gregory Ewing schrieb: > There is now a mailing list for discussion of PyGUI: > >http://mail.python.org/mailman/listinfo/pygui Is the list available on gmane? -- Thanks, Thomas ___ python-win32 mailing list python-win32@python.org http://mail.pyt

Re: [python-win32] Unable to build against debug Python

2009-11-19 Thread Thomas Heller
Arve Knudsen schrieb: > On Thu, Nov 19, 2009 at 8:01 AM, Thomas Heller wrote: > >> Arve Knudsen schrieb: >> > Hi >> > >> > I'm trying to install Python-Win32 from source in a debug-build of Python >> > 2.6.4, by issuing this command: python_d

Re: [python-win32] Unable to build against debug Python

2009-11-18 Thread Thomas Heller
Arve Knudsen schrieb: > Hi > > I'm trying to install Python-Win32 from source in a debug-build of Python > 2.6.4, by issuing this command: python_d .\setup.py install. It fails > however, with this error: LINK : fatal error LNK1104: cannot open file > 'python26.lib'. Is this due to a bug in the Py

Re: [python-win32] WinINet Http*Request?

2009-11-10 Thread Thomas Heller
Dolf Michielsen schrieb: > Hi, > > I am using win32inet for retreiving web pages via InternetOpenUrl / > InternetReadFile. Now I would like to extend the functionality to also > POST data. However, it seems the WinINet functions HttpOpenRequest, > HttpAddRequestHeaders, HttpEndRequest and HttpS

Re: [python-win32] Compiling Python code to DLLs: Any way to do this

2009-11-08 Thread Thomas Heller
Ti Crossman schrieb: > Hello, all. I have a need to create application extensions for ESRI > ArcGIS geographic information system software. ArcGIS is built from > the ground up using COM technology. Supposedly, one can program > against the (absolutely enormous) ArcObjects object model with any

Re: [python-win32] Passing Nothing into ReferencesEvents - resolved, however can't bind events [SEC=PERSONAL]

2009-10-19 Thread Thomas Heller
Zev Spitz schrieb: > I am coming from VBA, and my understanding of COM internals is very weak. > > 2 questions: > 1) What do I replace IWhatever with, and how do I find that out? (The > argument is supposed to be of type VBProject) > 2) How do I get an instance of IWhatever? > >From your origin

Re: [python-win32] How to use COM when there isn't a type library or IDL file

2009-10-09 Thread Thomas Heller
Mark Hammond schrieb: > This is very tricky to do in pure-python. Other interfaces with this > issue (eg, the shell interfaces) tend to use custom c++ code (often > generated by the 'makegw' package then heavily edited) to implement a > win32com 'sub-module'. The best alternative for you may b

Re: [python-win32] Windows 7 taskbar api

2009-09-28 Thread Thomas Heller
Gerdus van Zyl schrieb: > Thanks to this post > http://www.neowin.net/forum/index.php?s=6352ade29ce66f2b51506c64e455d2f4&showtopic=716968&st=0&p=590434472&#entry590434472 > > I got the idl that I could convert to a typelib and then use > cc.GetModule("taskbar.tlb"); > > The only trouble is you ha

[python-win32] comtypes-0.6.1 released

2009-08-19 Thread Thomas Heller
Thomas Heller * Bumped version number to 0.6.1. 2009-08-07 Thomas Heller * When an interface was specified in the call to IClassObject.CreateInstance, return that instead of calling GetBestInterface. Patch from James Teh. 2009-08-04 Thomas Heller

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Thomas Heller
Gertjan Klein schrieb: >>> 2) I see print statements in the source code, but I have no idea where >>> they go; I checked the event log, but they are not there. Are they >>> logged anywhere? If not, why are they there to begin with? >>> >>> Any other tip on how to effectively debug this stuff would

Re: [python-win32] dde trouble

2009-06-19 Thread Thomas Heller
Patrick Janssen schrieb: > Hi all, > I am having some trouble with controlling a Windows application through dde [...] > Does anyone know how I might be able to see the dde command strings that Lua > is sending to Ecotect (which all seem to work - I am thinking that there may > be an error in the d

Re: [python-win32] AutoCAD automation with COM.

2009-04-28 Thread Thomas Heller
Costin Gamenţ schrieb: > Hi, everybody! > > I'm trying to automate some tasks in AutoCAD (version 16.2 -- 2006) with > Python and COM. Apparently there is a long standind bug with either > win32com or AutoCAD: > http://mail.python.org/pipermail/python-win32/2005-December/004075.html > and

Re: [python-win32] OnCtlColor not working?

2009-03-03 Thread Thomas Heller
Greg Ewing schrieb: > Vernon Cole wrote: > >> So, Greg, can we anticipate a python_gui flavor for Windows in native mode? > > Yes, it looks like there's a reasonable chance of that > happening fairly soon. > > There are actually two possible ways it could go. I > have a partial implementation co

Re: [python-win32] Error with VixCom operation; TypeError: The VARIANT type is unknown (0x00000015)

2009-02-19 Thread Thomas Heller
Tim Roberts schrieb: > Vinay Anantharaman wrote: >> Hi, >> >> I am trying to translate an error into text by using a library function in >> vix com: >> >> http://www.vmware.com/products/beta/vmware_server/vix_api/ReferenceGuide/lang/com/functions/GetErrorText.html >> >> My code is as follo

Re: [python-win32] Looking for python-win32 version of EasyGUI

2009-02-07 Thread Thomas Heller
Robin Becker schrieb: > Chaim Krause wrote: >> I have an very small application that uses a single multichoicebox from >> EasyGUI. Because of the limitations of tkinter, I cannot get a single >> exe file using py2exe. >> >> I was wondering if anybody had created something similar to EasyGUI, but

[python-win32] comtypes 0.5.3 released

2008-12-12 Thread Thomas Heller
: 2008-12-12 Thomas Heller * Bumped version number to 0.5.3. * Added VARIANT support for VT_I8 and VT_UI8 typecodes. 2008-12-11 Thomas Heller * Workaround for Python bug: Python 3 cannot handle a distutils installscript in the setup script

Re: [python-win32] Passing data in a windows message

2008-12-10 Thread Thomas Heller
Tim Golden schrieb: > I'm using win32gui.PyGetBufferAddressAndLen to pass the address & length > of a marshalled object as the wparam / lparam of a windows message. > Something like this: > > address, length = \ > win32gui.PyGetBufferAddressAndLen (buffer (marshal.dumps (message))) I guess th

Re: [python-win32] Does Python need a native Windows GUI toolkit?

2008-12-03 Thread Thomas Heller
Greg Ewing schrieb: > Thomas Heller wrote: >> Does Python need a native, pure Python, Windows GUI toolkit, one that uses >> win32 api calls directly to use native windows controls? > > I believe so. One of the long-term goals for PyGUI is to > give it a native Windo

Re: [python-win32] Does Python need a native Windows GUI toolkit?

2008-12-03 Thread Thomas Heller
Thomas Heller schrieb: > Does Python need a native, pure Python, Windows GUI toolkit, one that uses > win32 api calls directly to use native windows controls? Ok, the answer to this question, for the 'community', is a clear No! Und

Re: [python-win32] Does Python need a native Windows GUI toolkit?

2008-11-30 Thread Thomas Heller
Simon Dahlbacka schrieb: > On Fri, Nov 28, 2008 at 10:46 PM, Thomas Heller <[EMAIL PROTECTED]> wrote: >> Does Python need a native, pure Python, Windows GUI toolkit, one that uses >> win32 api calls directly to use native windows controls? > > H

Re: [python-win32] Does Python need a native Windows GUI toolkit?

2008-11-28 Thread Thomas Heller
Stef Mientki schrieb: > Don't most people nowadays wants, and maybe even needs, OS-independant > applications ? Sure. But I assume that still quite a lot of people do NOT care about x-platform compatibility for their applications. Thomas ___ python-w

[python-win32] Does Python need a native Windows GUI toolkit?

2008-11-28 Thread Thomas Heller
Does Python need a native, pure Python, Windows GUI toolkit, one that uses win32 api calls directly to use native windows controls? Or would that development be a waste of resources, in these days of of Python.NET, Windows forms, IronPython, (and last, not least, wxPython and all these other toolk

Re: [python-win32] win32com and DispatchWithEvents()

2008-11-15 Thread Thomas Heller
Ryan Neve schrieb: > I posted this on comp.lang.python. but it has been pointed out to me that > this is a better place to ask. > > I'm trying to get DispatchWithEvents() to work with HyperAccess (terminal > program) without much success. My apologies for (again) advertising comtypes on this lis

Re: [python-win32] ByRef params not working with PythonCOM

2008-10-22 Thread Thomas Heller
Greg Antal schrieb: > Hi everybody. > > It's been nearly 2 weeks since I posted this, and nobody has responded. If > anybody has any ideas, I'd be glad to hear them. I'll provide more info on > anything anybody thinks is relevant. Well, a totally different idea would be to try out comtypes wi

Re: [python-win32] ctypes and DLL

2008-07-24 Thread Thomas Heller
Marcus.CM schrieb: > Hi > > On Windows/Vista :- > > vr = ctypes.CDLL(str) > > When loading a DLL that is corrupted using cytpes, i get a bombed out > box with "python.exe - bad image" as the message box title instead of > handling it at my exception handler. > How do i do this without th

Re: [python-win32] FireEvent : comtypes work but win32com fails, why?

2008-06-25 Thread Thomas Heller
Mark Hammond schrieb: > Thomas: >> Mark Hammond schrieb: >> >> > In summary, there are one big problem and one minor problem. The >> >> > first >> >> > is about pywin32's inability to pass FireEvent's second argument. >> > >> > I can't explain that :( I've stepped through the code, and it seems >>

Re: [python-win32] FireEvent : comtypes work but win32com fails, why?

2008-06-25 Thread Thomas Heller
June Kim schrieb: > IE's FireEvent works with a single argument, for example, > FireEvent("onKeyUp"). However, it doesn't work with two arguments : > FireEvent("onKeyUp",event). > > But It works without a problem with comtypes. > > See the following example to reproduce and compare: > > > file:

Re: [python-win32] FireEvent : comtypes work but win32com fails, why?

2008-06-25 Thread Thomas Heller
Mark Hammond schrieb: >> > In summary, there are one big problem and one minor problem. The >> > first >> > is about pywin32's inability to pass FireEvent's second argument. > > I can't explain that :( I've stepped through the code, and it seems we are > passing a VT_VARIANT containing a VT_BYREF

Re: [python-win32] Docs & bonus: pywin32 docs

2008-05-28 Thread Thomas Heller
Tim Golden schrieb: > Simon Dahlbacka wrote: >> Very nice, however you might want to fix the code samples to be properly >> indented instead of collapsed whitespace.. > > Can you point me towards an example? Here's an example: http://timgolden.me.uk/pywin32-docs/html/win32/help/process_info.htm

Re: [python-win32] os.startfile mysteriously failing

2008-04-21 Thread Thomas Heller
Tim Golden schrieb: > King Simon-NFHD78 wrote: >> Hello all, >> >> I am developing an application that, amongst other things, exports files >> and then launches them in their associated applications using >> os.startfile. It also uses webbrowser.open, which I see uses >> os.startfile. >> >> Every

Re: [python-win32] Convert PyIDispatch object to struct IDispatch*

2008-04-11 Thread Thomas Heller
Huayang Xia schrieb: > I am trying to use ctypes to call dll functions. One of the functions > requires argument "struct IDispatch* ". I do have a PyIDispatch object > in python. How can I convert this "PyIDispatch object" to "struct > IDispatch* "? > Thanks in advance. The only way (that I know o

Re: [python-win32] OT: Version in EXE ...

2008-04-03 Thread Thomas Heller
Clinton Lee Taylor schrieb: > Greetings ... > > This might be a little off topic, but I'm hoping that some might know > how to add version details to exe files created with py2exe so that > install system can version control upgrades ... > > Thanks > Mailed > LeeT IIRC, py2exe itself has sample

Re: [python-win32] possible to save the output of TTS to a WAV file?

2008-03-07 Thread Thomas Heller
Alec Bennett schrieb: > I'm trying to save the output of some TTS to a sound file, is this possible? > > Here's how I'm doing the TTS, though am certainly open to other methods: > > import pythoncom, win32com > import win32api, win32com.client > pythoncom.CoInitialize () > > s = win32com.client.

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-27 Thread Thomas Heller
Larry Bates schrieb: > One last problem. When I working class inside my COM object and everything > works until I (or Python) destroys the reference to this object. I then get > this exception: > > Exception exceptions.ValueError: 'COM method call without VTable' in meth > od POINTER(IProgres

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-26 Thread Thomas Heller
Larry Bates schrieb: > Thomas Heller wrote: >> Larry Bates schrieb: >>> I've spent all morning searching and I just can't seem to find the >>> TypeLibrary >>> name for this COM interface. >> Sometimes someone who wants to use the object from

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-22 Thread Thomas Heller
> Ok, I downloaded that project, and stripped out the TLB. I then got comtypes > and was able to use comtypes.client.GetModule to generate the typelib wrapper > module for it: > > >>> GetModule("progdlg.tlb") > 'C:\Python25\lib\site-packages\comtypes\gen\_2F2719A2_83CC_11D3_A08C_0040F6A4BFEC_

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-22 Thread Thomas Heller
Larry Bates schrieb: > I've spent all morning searching and I just can't seem to find the > TypeLibrary > name for this COM interface. I've searched the registry, scanned COM browser > list at least a dozen times, etc. Some information about this COM object is > located here: > > http://www.

Re: [python-win32] LP_WNDCLASS vs pointer to WNDCLASS

2008-01-17 Thread Thomas Heller
Henry Baxter schrieb: > Hello, > > I keep getting this error, and I cannot figure out why. I have code that > registers a window class that works, and code that does not. Both bits of > code create a WNDCLASS, both use byref(thewndclassinstance), both make sure > there is always a reference to the

Re: [python-win32] Custom control, WS_CHILD

2008-01-13 Thread Thomas Heller
Henry Baxter schrieb: > Thanks for the tip, venster not only has a neat way to resolve this issue, > but plenty of other really useful things (lists of windows constants and > other stuff that take time to assemble). > Then you might also be interested in the ctypeslib package; it is able to make

Re: [python-win32] Custom control, WS_CHILD

2008-01-13 Thread Thomas Heller
Henry Baxter schrieb: > Problem solved! > > I was using ctypes.byref to pass a reference to the window class, but before > calling CreateWindow the window class in question went out of scope and was > destroyed. > > I'm worried this type of problem will happen more often, but I'm not sure > how t

Re: [python-win32] gui examples

2007-10-16 Thread Thomas Heller
Christian K. schrieb: > Tim Golden timgolden.me.uk> writes: > >> >> Christian K. wrote: >> > Ludovic Reenaers wrote: >> >> Hi, >> >> you should download WxPython there is a pretty nice documentation with >> >> very >> > detailed samples. >> >> cheers, >> > >> > I know, thanks. wxPython is usua

Re: [python-win32] Finding the COM server

2007-10-12 Thread Thomas Heller
Tim Roberts schrieb: > Kevin Patterson wrote: >> Does the registry get updated every time the comserver is run? For >> example I know some of my users keep multiple copies of the same rev >> (or different revs) in different directories. My script often gets >> called after the COM server is up and

Re: [python-win32] Writing .NET component in Python

2007-09-06 Thread Thomas Heller
Sidnei da Silva schrieb: > [ Thomas Heller ] >> Not sure what you mean by .NET port. I have the impression (from reading, >> never >> used .NET myself) that .NET is able to use COM objects. It may be >> required that >> the COM objects must have a type library.

Re: [python-win32] Writing .NET component in Python

2007-09-06 Thread Thomas Heller
Larry Bates schrieb: > Does anyone have any insight where I would start looking for information on > writing .NET compatible components in Python. I have a COM object that is > written in Python and some developers have asked for a .NET port of it. I > spent > some time in Google and didn't c

Re: [python-win32] win32com does not recognise an Interface for events

2007-08-10 Thread Thomas Heller
Len Remmerswaal schrieb: > > import comtypes.client as cc > import comtypes.gen.S7PROSIMLib as S7PS > class testVehikel: > def __init__(self, progid, eventsClass): > self.intf = cc.CreateObject(progid) > self.rcvr = eventsClass() ## just added () to assign an obj i.o. a > cl

Re: [python-win32] win32com does not recognise an Interface for events

2007-08-09 Thread Thomas Heller
>> >> You could try comtypes: it should support custom interfaces and >> >> custom event interfaces. >> >> >> >> 'easy_install comtypes==dev' to get the SVN version. >> >> > > Wow. The battle of the packages is afoot :-) > > Thanks for the hint: I did not know about this package. > > I have given i

[python-win32] comtypes mailing list

2007-08-07 Thread Thomas Heller
Since the number of comtypes users seems to be growing slowly, I have created a comtypes mailing list. The mailing list interface is here: http://lists.sourceforge.net/lists/listinfo/comtypes-users comtypes "homepage": http://cheeseshop.python.org/pypi/comtypes Thomas

Re: [python-win32] win32com does not recognise an Interface for events

2007-08-07 Thread Thomas Heller
>> OLE Viewer finds a second interface IS7ProSimEvents that is >> made the default source makepy does not recognise >> IS7ProSimEvents as an interface at all. > > > It would appear that makepy is excluding non-dual interfaces, and that the > integration with the 'universal' support for vtable i

Re: [python-win32] Win32 COM cache problem

2007-05-30 Thread Thomas Heller
Marc-André Belzile schrieb: > I dig a bit more and it appears that the python win32 com module requires all > target typelibs to be in the app current directory. Otherwise the cache is > systematically re-generated anytime a new scripting engine is created. > > Am I doing something wrong ? Than

Re: [python-win32] DCOM

2007-05-25 Thread Thomas Heller
Francesco Guerrieri schrieb: > hi Mark, > > actually I have used dcomcnfg to set the various accesses. Now I'm at > loss, since I have looked at all the various tabs and settings > available, and it seems that all refer to enabling DCOM (which I did) > and granting access (which I think I did). >

Re: [python-win32] win32com.client.DispatchWithEvents free threading re-entrancy

2007-05-10 Thread Thomas Heller
Richard Bell schrieb: > I'm working on an application that does some IE automation via the COM > interface. I'm running in a free thread model, sys.coint_flags = 0, and > starting IE with > win32.com.client.DispatchWIthEvents("InternetExplorer.Application", > event_handler_class). Events are arr

Re: [python-win32] Win32 service with tray icon

2007-05-09 Thread Thomas Heller
Larry Bates schrieb: > Mark Hammond wrote: >>> I'm writing a win32 service in Python. I'd like to add a >>> tray icon displayed >>> whenever the service is running. I have played around with >>> SysTrayIcon.py >>> [1], but if a user logs off and logs back on, the tray icon >>> disappears even >>>

Re: [python-win32] com events while running wx main loop

2007-04-20 Thread Thomas Heller
Christian K. schrieb: >> Second, if you are running the exact sample that I posted then it should work >> for InternetExplorer, and with slight changes also for Outlook. At least >> it worked for me. > > Well, here it doesn't. comtypes uses fairly extensive logging calls in certain areas. You c

Re: [python-win32] com events while running wx main loop

2007-04-20 Thread Thomas Heller
Christian K. schrieb: > > I successfully read out the Outlook inbox using comtpyes but finally > switched back to pywin32 because I was not able to interprete the value > of MailItem.CreationTime, > e.g: > obj.Session.Folders['mail.server.com'].Folders['INBOX'].Items.Item(1).CreationTime > which

Re: [python-win32] com events while running wx main loop

2007-04-20 Thread Thomas Heller
Christian K. schrieb: > Thomas Heller wrote: >> Christian K. schrieb: >>> Now I installed comtypes from svn and get this error running your new >>> example: >>> >>> Traceback (most recent call last): >>>File "C:\Dokumente und Eins

Re: [python-win32] com events while running wx main loop

2007-04-19 Thread Thomas Heller
Christian K. schrieb: > > Now I installed comtypes from svn and get this error running your new > example: > > Traceback (most recent call last): >File "C:\Dokumente und Einstellungen\ck\Desktop\x.py", line 64, in ? > Listener() >File "C:\Dokumente und Einstellungen\ck\Desktop\x.py",

Re: [python-win32] com events while running wx main loop

2007-04-18 Thread Thomas Heller
Christian K. schrieb: > sorry. I forgot the attachment. > > Christian > > > > > > import unittest > import comtypes.client > > import wx > > class EventHandler(object): > """Instances are called when the COM object

Re: [python-win32] GIS Shape file upload FTP server

2007-03-02 Thread Thomas Heller
Ahmed, Shakir schrieb: > HI Group, > > > As I am very new in python field so this question might be very silly > but if I get any help that is highly appreciated. > > > Problem: > > I wrote a python script which is working fine to upload files to the ftp > server but the problem it is reducin

Re: [python-win32] win32com: Problem with passing short integer?

2007-01-09 Thread Thomas Heller
Einar Sørheim schrieb: > Hi, > I have a set of com dlls that I have a hard time to get working together > with python. [...] > I have sample programs doing the same in c++ and VB and it works there. > Have tried comtypes but then stumbles on another problem > earlier in the program. If it reall

Re: [python-win32] comtypes: Problem with passing string argument

2007-01-08 Thread Thomas Heller
Einar Sørheim schrieb: > I have a com library that I have a hard time getting to work, some of it > works in win32com, some in comtypes. > Have a question first for comtypes(using python2.4 and svn checkout > 3.jan07 of comtypes): > The following code fails at the last step: > self.dl = c

Re: [python-win32] comtypes

2006-12-21 Thread Thomas Heller
Niki Spahiev schrieb: > Thomas Heller wrote: >> comtypes seems to gain some attention (comtypes is a pure Python, lightweight >> COM client and server framework, based on the ctypes Python FFI package.) >> >> I'll try to release a new version over the next days. &g

Re: [python-win32] Implementing custom com interface, passing it to another com object for callbacks

2006-12-08 Thread Thomas Heller
johnny loops schrieb: > Thomas, thanks for your help. Everything seemed to work except when I > needed to pass my com object to another com function to receive > callbacks > >> > o=myComObjClass() >> > otherDispatchedComObject.FunctionThatNeedsInterface(o, otherInputs) > > The other dispatched c

[python-win32] comtypes

2006-12-07 Thread Thomas Heller
comtypes seems to gain some attention (comtypes is a pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.) I'll try to release a new version over the next days. However, I'm wondering what would be the correct list to discuss this package... - the pyt

Re: [python-win32] Implementing custom com interface, passing it to another com object for callbacks

2006-12-07 Thread Thomas Heller
johnny loops schrieb: > Thanks, these references are really helpful, and I think I understand > a lot more of the path using comtypes. Continuing with my pseudo code > example-- this is what I think I should do: > > -run GetModule() on the library, which should create the interface foo Yes. > -

Re: [python-win32] Implementing custom com interface, passing it to another com object for callbacks

2006-12-06 Thread Thomas Heller
johnny loops schrieb: > I have been pining over implementing what seems to be a VB custom com > interface for some time now, so I thought I would post to the list to see if > anyone could help. > > I have a com component on which I have run makepy. The function generates a > couple of classes wit

Re: [python-win32] pythoncom multithread troubles

2006-11-27 Thread Thomas Heller
Kostas Eleftheriou schrieb: > Hi, > > I have built a python application that uses a COM server from multiple > threads, and despite some initial problems, I got it to work. I found > out (the hard way) that the COM server would have undefined behaviour > if some of its functions were called at the

Re: [python-win32] Determine admin rights

2006-11-15 Thread Thomas Heller
Arve Knudsen schrieb: > Hi > Is there a way I can determine whether a user is a local administrator using > pywin32? I've used NetUserGetLocalGroups to see if the user is in the > "Administrators" group, but this breaks on non-English versions of Windows. > As far as I can see there exists a functi

Re: [python-win32] py2exe and winxptheme

2006-11-14 Thread Thomas Heller
Andrea Gavana schrieb: > Hi all, > > I am having some troubles mixing py2exe and winxptheme. Basically, > I am using wxPython 2.7.2.0 with Python 2.5, and painting some window > background using the UxTheme via winxptheme. This is what I am doing: > > hwnd = MyWindow.GetHandle() > self.hTheme

Re: [python-win32] how to get the interface of an COM object?

2006-11-14 Thread Thomas Heller
Bruce Who schrieb: > Hi, Thomas > > Finally I make it to create a COM object: > > class EventSink: > def OnLoadFinished(self): > print 'load finished' > > o = comtypes.client.CreateObject("SomeObj2.SomeObj.1", sink=EventSink()) > > but the EventSink.OnLoadFinished() is never called,

Re: [python-win32] py2exe and winxptheme

2006-11-14 Thread Thomas Heller
Andrea Gavana schrieb: > Hi Thomas, > >> >> Let me try to guess: Do you have an XP-style manifest for the exe? >> > > Yes, I have it, embedded in the setup.py script. I have removed it > from the file I sent to the mailing list because I thought it was > redundant, but if you need to see it I ca

Re: [python-win32] how to get the interface of an COM object?

2006-11-13 Thread Thomas Heller
Bruce Who schrieb: > I googled the web and find some old posts in this maillist, it seems > that only interfaces inherit from IDispatch can be used by pythonCOM, > and interfaces here inherits from IUnknown. But I just need to use > these interfaces, so could anybody tell me how to do it? > > And

Re: [python-win32] Waiting for Wireless

2006-10-26 Thread Thomas Heller
Schollnick, Benjamin schrieb: > Tom, > >> I have a module lying around that does this. Should work on 2k and >> > XP, at least. >> You call it with the 'friendly name' of the network adaper, and it > displays the ip >> address and network mask (IIRC). Should be easy to adapt to our > needs, and

Re: [python-win32] Waiting for Wireless

2006-10-25 Thread Thomas Heller
Tim Roberts schrieb: > As a self-proclaimed studly Win32 programmer, I'm embarrassed at not > being able to find a neat solution to this. I come to you humbly, > seeking coolness. > > I have a script on my laptop that runs after login and launches the > tools that I use all the time, including th

Re: [python-win32] Trouble Automating Alibre CAD package

2006-07-12 Thread Thomas Heller
[EMAIL PROTECTED] schrieb: > > Hello, > > > > I am trying to use pywin32 to automate a CAD package from Alibre > > (www.alibre.com) called Design Express. > > > > The documentation I can get is written for Visual Basic (and not all that > > well at that), and I get the following error from the

Re: [python-win32] Trouble Automating Alibre CAD package

2006-07-12 Thread Thomas Heller
[EMAIL PROTECTED] schrieb: > Hello, > > I am trying to use pywin32 to automate a CAD package from Alibre > (www.alibre.com) called Design Express. > > The documentation I can get is written for Visual Basic (and not all that > well at that), and I get the following error from the following line

Re: [python-win32] Building pywin32 with the free MS toolkitcompiler

2006-04-19 Thread Thomas Heller
Paul Moore wrote: > On 4/19/06, Roger Upole <[EMAIL PROTECTED]> wrote: >> I've removed the ATL macros from win32wnet. (checkin messages are still >> bouncing) > > Cool, thanks. I was going to look at this, but real life came along... > > When I get back to it, I'll see how much I can get running

Re: [python-win32] ATT DSP32C to IEEE

2006-01-13 Thread Thomas Heller
Ray Schumacher <[EMAIL PROTECTED]> writes: > At 08:00 AM 1/6/2006, Thomas Heller wrote: > >>RayS <[EMAIL PROTECTED]> writes: >> >>> I'm trying to find an efficient way to convert from DSP32C binary files >>> smmm

Re: [python-win32] ATT DSP32C to IEEE

2006-01-06 Thread Thomas Heller
RayS <[EMAIL PROTECTED]> writes: > I'm trying to find an efficient way to convert from DSP32C binary files > smmm > to IEEE float > seee emmm > > I tried struct and bit-shifting from a C manual example, but it > failed. Has someone else cod

Re: [python-win32] How to unload ShellExtension?

2006-01-04 Thread Thomas Heller
aurora <[EMAIL PROTECTED]> writes: > I have previously asked about how to reload a ShellExtension during > development. There a a few good suggestions like killnig the explorer > process. AFAIK, the official way to kill explorer (useful during development) on XP is to press Start->Shutdown.

Re: [python-win32] win32com v.s. win32comext?

2006-01-03 Thread Thomas Heller
aurora <[EMAIL PROTECTED]> writes: > I use win32com.shell. There are something special going on I don't > understand. Notice the commands below. I imported win32com.shell. But the > module is being loaded from win32comext\shell\__init__.pyc. > import win32com.shell win32com.shell >

  1   2   >