[EMAIL PROTECTED] wrote:
Hello Guillaume,Hi, I'm an engineer from France and I use PythonWin very often. I Have one question please : I'd like to run a function from a library included in the "Tools=>COM Browser=>Registered Type Librairies" menu. This library is called "Bibiothèque de pilotage de Scandiag" and I'd like to run from this library the function called "Telechargement" from "ISScandiagOCX". Just below is the source code in Visual basic just as an example so that you can get more easily what I try to explain you : Private Sub CommandButton1_Click() Dim MonObjet As ScandiagOCX Dim result As Integer Set MonObjet = New ScandiagOCX result = MonObjet.Telechargement("C:\Scandiag\Files\edc16.can", 1, 1, 1) Set MonObjet = Nothing End Sub Actually, I'd like to do the same in python. I tried already : import win32com.client ob = win32com.client.Dispatch("The.ProgID") ob.Telechargement() But actually, I don't know which arguments I need to use with the dispatch command. Therefore, what I want you to explain me please is how to determine the "Prog ID". Is it a number, a string?? Thanks a lot in advance for your help, Guillaume DAUGUET PSA - La Garenne-Colombes DPTA/DPMO/CCEE/MPVI/SVLG Tél : (+33) 1.56.47.33.90 Fax : (+33) 1.56.47.30.74 E-mail : [EMAIL PROTECTED] _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32 I will tell you what I know (but I am not knowledgeable about this): The Dispatch parameter is most likely a string. For example:
-- jv |
_______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32