Re: [python-win32] Outlook Add-In Demo Question ... A runtime error occurred during the loading of the com add-in

2021-12-08 Thread Dan Moisan
he PATH for office is the > generic advice, but it's difficult to give more specific advice without > knowing more about your specific environment. > > Cheers, > > Mark > > On 8/12/2021 1:49 pm, Dan Moisan wrote: > > I apologize in advance for the basic question

[python-win32] Outlook Add-In Demo Question ... A runtime error occurred during the loading of the com add-in

2021-12-07 Thread Dan Moisan
py script before or after I run it? Or should the add-in load after it is registered? I'm so sorry for such a basic question. Thank you! Dan ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

[python-win32] Possible leak in the win32evtlog module when using EvtSubscribe

2016-11-01 Thread Dan Cohen
None, Callback=my_event_handler, Context=None, Query=None) And then in another process creating tons of event logs by doing : while True: x = win32security.LogonUser("Dan Cohen","", "X",3,0) x = None Which creates a lot of event logs of ty

Re: [python-win32] getting underlying OLE object identity for win32com objects

2014-10-01 Thread Dan Lenski
;is" for this purpose with Python objects. Both versions that you suggested do the trick: table==same_table and table._oleobj_==same_table._oleobj_ Thanks, Dan ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

[python-win32] getting underlying OLE object identity for win32com objects

2014-10-01 Thread Dan Lenski
to confirm that two objects refer to the same underlying OLE object, I've resorted to parsing the `repr()` strings and comparing the hexadecimal addresses ("`obj at 0x...`"). Is there a better way to do this? Thanks, Dan Lenski ps- I also posted this on StackOverflow (http://stacko

Re: [python-win32] VARIANT parameter

2012-10-12 Thread Dan Glassman
On Fri, Oct 12, 2012 at 6:27 AM, Matteo Boscolo wrote: > sometimes you need a combination of variant type like > win32com.client.VARIANT(VT_VARIANT | VT_NULL,None) > In this case, AutoCAD and Intellicad want: filterType = VARIANT(pythoncom.VT_ARRAY | pythoncom.VT_I2, [0]) filterData = VARIANT(

Re: [python-win32] speed up win32com.client

2012-05-12 Thread Dan Glassman
VBA is faster because it's running in-process inside AutoCAD (everything is loaded into acad.exe). Python runs out-of-process (AutoCAD objects need to be passed back and forth between acad.exe and python.exe). You can use AutoCAD's ObjectARX API to embed python inside AutoCAD and make python in-p

[python-win32] pywin32 and Windows Filtering Platform?

2012-04-21 Thread Dan
arted? -Dan ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] problem AddLine AutoCAD win32com.client

2012-02-01 Thread Dan Glassman
Daniel, I've tested a prerelease version of pywin32 that contains the new win32com.client.VARIANT class and it works well with AutoCAD. Once released, you can write something like this: import win32com.client import pythoncom def POINT(x,y,z): return win32com.client.VARIANT(pythoncom.VT_ARR

[python-win32] Problem with Pyserial

2010-06-14 Thread Dan Ackerman
oes anyone know what the problem could be? import serial ser=serial.Serial(0) ser.baudrate=9600 ser.port=0 ser.open() ser.write("hello\n") ser.close() Thanks, Dan ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mai

[python-win32] Trying to send info through serial port

2010-06-11 Thread Dan Ackerman
al.Serial(0) #if port has specific name, use: ser = serial.Serial('portName', 19200, timeout=0) print ser.portstr #should tell you what specific port was used ser.write('FREQ 720 MHz') ser.close() Thanks, Dan ___ python-wi

Re: [python-win32] Duplex pipes issue (was (no subject))

2009-01-22 Thread dan
Thank you, Tim, That fixed it! (and apologies to the list for initially sending this with no subject). --Dan > d...@shragmir.com wrote: >> This is not the end of the world, because I can write the client >> application to use win32 API calls instead of the Python calls. But &g

[python-win32] (no subject)

2009-01-22 Thread dan
kages\pywin32-210.0001_s-py2.5-win32.egg\pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript exec codeObject in __main__.__dict__ File "C:\Python25\Lib\site-packages\pyccf\simple_server_test.py", line 42, in CLIENT_PIPE.write( 'A' ) IOError: [Errno 0] Error --Dan Menes ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Memory Leak in MFC/C++ based Python Extended/Embedded code.

2008-01-07 Thread Dan Trowbridge
Hi all, I have a MS Windows/MFC based C++ code that I have implemented Python embedding/extending in. (I am using Visual Studio 2003.) The code seems to do what I have intended except it always reports a memory leak when it exits. I tried all kinds of things but there did not seem to be anythin

Re: [python-win32] Adding AutoCAD Points.

2006-06-05 Thread Dan Glassman
Tim Riley wrote: > Has anyone come up with a way to add AutoCAD points using Python and > win32? Do I have to use Makepy on the type library? For example adding a > line to Modelspace requires you to call the AddLine method that accepts > two arrays of doubles. > > Any help/tips would be greatl

Re: [python-win32] Using win32com Constants

2006-02-17 Thread Dan Glassman
David Carter wrote: >>-Original Message- >>From: Robert Brewer [mailto:[EMAIL PROTECTED] >>Sent: Friday, February 17, 2006 4:11 PM >>To: David Carter; python-win32@python.org >>Subject: RE: [python-win32] Using win32com Constants >> >> >>David Carter wrote: >> >>>Why is it that when I want

[python-win32] [Fwd: Re: Excel advanced find]

2006-02-15 Thread Dan Glassman
Dan Glassman wrote: > Named arguments will work as suggested; this will prevent those > arguments from being presented to the Excel interface at all. You can > also use pythoncom.Missing, which is another way to prevent arguments > from being presented to the interface: >

Re: [python-win32] Excel advanced find

2006-02-15 Thread Dan Glassman
t all. You can also use pythoncom.Missing, which is another way to prevent arguments from being presented to the interface: [code] from pythoncom import Missing usedRange = xlApp.ActiveSheet.UsedRange usedRange.Find('FXN3', Missing, constants.xlValues, constants.xlWhole, constants

Re: [python-win32] Explicit variant types for Invoke & InvokeTypes (WasRe: Autocad.*)

2006-02-09 Thread Dan Glassman
Dan Glassman wrote: > I don't want to post such long code, so I'm hosting it. If the links > don't work for any interested party, please just email me and I'll get > you a copy. I'm quite enjoying this learning experience and am open to > al

Re: [python-win32] Explicit variant types for Invoke & InvokeTypes (WasRe: Autocad.*)

2006-02-08 Thread Dan Glassman
PyObject_GenericGetAttr(obj, valAttr); if (!obuse) { Py_XDECREF(reqdType); return FALSE; } PythonOleArgHelper helper; helper.m_reqdType = V_VT(var) = rawVT; helper.MakeObjToVariant(obuse, var); Py_XDECREF(reqdType); Py_XDECREF(obuse); } // NOTE: PySequence_Check may return true for instance objects, ... [/code] Cheers! -Dan Glassman ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Unable to close Excel, error in dynamic.py

2006-02-08 Thread Dan Glassman
George Flaherty wrote: > I have been messing around Excel, but when I run the following example I get > an error? > > Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. from win32com.client i

[python-win32] Explicit variant types for Invoke & InvokeTypes (Was Re: Autocad.*)

2006-02-06 Thread Dan Glassman
ings (at the very least), and I don't know how to test the Invoke case. It will likely take me awhile to figure through the rest of this on my own. In the meantime, this code could be pared down to solve a less general case than Mark describes above: the Variant() cla

[python-win32] Autocad automation via COM: Passing coordinates as arguments (suggested fix within)

2006-01-25 Thread Dan Glassman
> From: wccppp <[EMAIL PROTECTED]> > Subject: [python-win32] question about COM again: variable type? > > [code] > ms.AddPoint([0.0, 0.0, 0.0]) # this line gives the problem > [/code] > > # Result is of type IAcadPoint > def AddPoint(self, Point=defaultNamedNotOptArg): > """Create

[python-win32] IIS CGI installation

2005-06-03 Thread Dan Fulbright
I have found a lot of links to http://www.e-coli.net/pyiis_server.html, however, this page starts out with: "This is really very easy. It is also not a good idea for both security and performance reasons." What are the security and performance issues, and how can they be overcome? I am wanting