How to GetClassName in Python

B

bala

Hi,
I want to know how to getclassname of application from python..In python There is no method like GetClassName...
Is there any other Method ...I kindly give some example in python..
If anyone answer to the above problem....I will be very thankfull to you...

Note:- Using Python Application, I want to Get the ClassName of any Application.
 
H

Hemanth P.S.

bala said:
Hi,
I want to know how to getclassname of application from python..In
python There is no method like GetClassName...
Is there any other Method ...I kindly give some example in python..
If anyone answer to the above problem....I will be very
thankfull to you...

Note:- Using Python Application, I want to Get the ClassName of any
Application.
--

You can access it by the attribute __class__ of the object.
--Hemanth
 
B

Bengt Richter

This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C3B597.FC516DF0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
I want to know how to getclassname of application from python..In =
python There is no method like GetClassName...

Presumably you want to access this win32 API:
----
GetClassName
The GetClassName function retrieves the name of the class to which the specified window belongs.

int GetClassName(
HWND hWnd, // handle of window
LPTSTR lpClassName, // address of buffer for class name
int nMaxCount // size of buffer, in characters
);
----

Most people here probably think of something different when you say "class" ;-)
IOW, best to mention the windows connection, if it's not strictly a Python question.

There are extension modules that will let you get at the win32 api. E.g.,
see Mark Hammond's win32all at

http://starship.python.net/crew/mhammond/win32/Downloads.html

or Thomas Heller's ctypes module at

http://starship.python.net/crew/theller/ctypes/

Is there any other Method ...I kindly give some example in python..
If anyone answer to the above problem....I will be very =
thankfull to you...

Note:- Using Python Application, I want to Get the ClassName of any =
Application.
------=_NextPart_000_0009_01C3B597.FC516DF0
Content-Type: text/html;

If you want to avoid annoying some people here (good strategy if you want help ;-)
please try to avoid posting HTML to the newsgroup.

Regards,
Bengt Richter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,173
Messages
2,570,938
Members
47,475
Latest member
NovellaSce

Latest Threads

Top