473,396 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

win32com support (follow up to previous thread)

Does this mean that there isn't a way to put a button into Visual
Studio 6.0 and then have it execute python code all purely done in
python.

I.e could I write a python program that puts a button in the msdev
toolbar like the outlook.py example and then when its pushed reformats
the current document, using the Application.Document.SelectAll() com
methods or something like that.

Cheers

Matt
Generally, you can do a QueryInterface for the object. However, if
the object does not support IDispatch, you will haver trouble - we
don't support arbitrary interfaces when calling them, only
implementing them.

ob = ob._obj_.QueryInterface(

I take it the chances of this working are slim to none ?

The GUID must be for a type library. If you run "makepy.py -i", then you will get a list of all valid typelibs you can use, and the params for it.


Bum!

Perhaps I should look at implementing the actual addin in C++ and

thenembed python into it so that most the work can be done by that.

Thanks for your help anyway

Rich

Jul 18 '05 #1
0 916

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Justin Stockton | last post by:
I recently upgraded from ActivePython 2.2.2 to ActivePython 2.3.2 and I'm running into an issue importing the win32com.client module. Before installing the new version, I made sure to properly...
0
by: Guy Robinson | last post by:
Hello, I revist this every now and then and are still no closer to getting it to work. I want to extract the thumbnail from a file on windows using either win32com or ctypes. As described in...
3
by: Peter Sparago | last post by:
(Sorry in advance for the long post.) Hi, I'm having a great deal of difficulty buiding a Python COM extension. I am using the MSHTML ActiveX control in my application but I need to interact...
2
by: Chris Curvey | last post by:
Hi all, I have a python script that uses the PAMIE libraries to drive IE. It runs fine from the command line, but it appears to have some permissions problem when I run it via CGI. Here's the...
1
by: Tim Penhey | last post by:
I am currently refraining from tearing out any more hair. I have started at a new job and I am trying to get some quick tests for some COM components that are used here. This morning I...
1
by: koia | last post by:
Hi, I have a problem with adding attributes to a Line in an Excel drawing using the Python win32com interface. From recording in Excel I get the Macro: Sub Makro1()...
1
by: bli | last post by:
I have been developing an application driving a device through COM. I used win32com (brilliant ) and was at a fairly advanced stage being able to access the functions of the device and access/...
0
by: Tim Golden | last post by:
Lave wrote: You have broadly two approaches here, both involving automating Word (ie using the COM object model it exposes, referred to in another post in this thread). 1) Use the COM model...
19
by: Eric S. Johansson | last post by:
Almar Klein wrote: there's nothing like self interest to drive one's initiative. :-) 14 years with speech recognition and counting. I'm so looking to my 15th anniversary of being injured next...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.