How to Extract the Control Name in VB Application Using Pytho n

SBrunning at trisystems.co.uk SBrunning at trisystems.co.uk
Mon Dec 1 06:45:31 EST 2003


> From:	bala [SMTP:blk at srasys.co.in]
>      Iam using python....to invoke VBApplication...in the VBApplication
> contains lot controls...for Example 
> 1.TextBox
> 2)CheckBox
> 3)Button
> 4)RadioButton
> 5)ComboBox
> 6)ListBox
>  
> Outoff this six control....iam able to identify the Button,RadioButton and
> CheckBox Control...But iam not able to find the TextBox,Combobox and
> ListBox control name
>   
What, exactly, dso you mean my 'name'? Are you using
win32gui.GetWindowText()? If so, well, Text boxes etc don't *have* text, not
as such. See http://www.brunningonline.net/simon/blog/archives/000664.html
for how to extract the content of this kind of field.
 
> iam able to find the handle for all the control...
> Some of the Handle gives the Name and  some of them is not giving the
> control name....
>  
Example code?

Cheers,
Simon Brunning,
http://www.brunningonline.net/simon/blog/





-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.





More information about the Python-list mailing list