ChaitanyaK

How to get or Copy Dropdownlist selected Text

8 posts in this topic

Hi Guys,

When i automate my windows application, i have to copy the selected text from dropdownlist.

Please find the attachment for reference.

any help would be much appreciated.

Thank You....

 

 

Dropdownlist selection.png


Regards,
Chaitanya K.

Share this post


Link to post
Share on other sites



try this:

GUICtrlRead($dropdownmenu)

Or look in the help file

Share this post


Link to post
Share on other sites
17 hours ago, Small said:

try this:

GUICtrlRead($dropdownmenu)

Or look in the help file

Thank You for your reply Small,

That was already pre-developed Windows Application. On this Application, I have to Automate....So there is no GUIControls created....


Regards,
Chaitanya K.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Could any suggestion or Sample Code for Above Problem....

Edited by ChaitanyaK

Regards,
Chaitanya K.

Share this post


Link to post
Share on other sites

Use AutoItInfotool to get the info's about the app you want to automate. Use ControlGetText from the dropdownlist.

Share this post


Link to post
Share on other sites

Thank You AutoBert.....I wil follow your suggestion:)


Regards,
Chaitanya K.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

ControlCommand

option:

"GetCurrentSelection", "" Returns name of the currently selected item in a ListBox or ComboBox
Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

 Jdelaney, Thank You so much.........


Regards,
Chaitanya K.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now