Python and COM objects?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
10 views
One

Run in PythonWin — > Tools — > COM Browser — >

look the name of the library in the "Registered Type Libraries" — >


run python.exe — >
>>> import win32com.client.as makepy makepy
>>> makepy.ShowInfo('the name of the library, which we found in the Registered Type Libraries')


— > cheers! we will generate the module, which is placed in a special folder


This module, with a tremendous, nenormiruemym name really appear in the folder — .../gen_py

And that is the question. What this module can do next? And, accordingly — how?

2

Using win32com.client.Dispatch('title for something') we can apply to the interfaces specified in the specifications. And do with them what it indicated.


However, if we do not know the "name-it-something" — how to find and use that allows us to do the running and the active server COM objects?

Particularly interested in — how to handle the interfaces?

In fact, both questions are one and the same — two days trying to do something, but the idea has not yet penetrated.
by | 10 views

1 Answer

0 like 0 dislike
maybe just read what is written in the module with the unreadable name?
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
27,213 users