Re: [comtypes-users] View Word's toolbar events

2007-11-07 Thread Thomas Heller
Here's the code that I am using: """ import comtypes.client word = comtypes.client.GetActiveObject("Word.Application") word.Visible = 1 tb = word.CommandBars[1] btn = tb.Controls[1] print btn.Caption evt = word.VBE.Events.CommandBarEvents(btn) print evt conn = comtypes.client.ShowEvents(evt) f

Re: [comtypes-users] View Word's toolbar events

2007-11-07 Thread Radu Adrian Ciora
But that this event then? # event found: _dispCommandBarControlEvents_Click Radu. - Original Message From: Thomas Heller <[EMAIL PROTECTED]> To: comtypes-users@lists.sourceforge.net Sent: Wednesday, November 7, 2007 8:23:39 AM Subject: Re: [comtypes-users] View Word's toolbar events Her

Re: [comtypes-users] View Word's toolbar events

2007-11-07 Thread Thomas Heller
Radu Adrian Ciora schrieb: > But that this event then? > > # event found: _dispCommandBarControlEvents_Click > Well, ShowEvents first prints the available events (methods) that it finds on the interface in this way (sample for InternetExplorer): >>> con = ShowEvents(ie) # event found: DWebBrow