Sign in to follow this  
Followers 0
coucou

Help on how to select from ComboBox

11 posts in this topic

Hi,

I'm looking for language selecting (see image bellow) from the script bellow without success

Here the AutoItInfo

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title:  Setup
Class:  #32770
Size:   X: 412  Y: 393  W: 456  H: 144

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size:       X: 113  Y: 44   W: 258  H: 21
Control ID: 1001
ClassNameNN:    ComboBox1
Text:       
Style:      0x50010203
ExStyle:        0x00000004

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<
OK
Cancel
Select the language for this installation from the choices below.
English (United States)

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

Here the script

Run("setup.exe")

WinWait("setup")
;Language select: "English (United States)" or "French (France)" or "German (Germany)"
ControlCommand("setup", "", "ComboBox1", "FindString", "French (France)")
ControlClick("setup", "", "Button1")

I've tested also with the command bellow without success

ControlCommand("setup", "", "ComboBox1", "SetCurrentSelection", "French (France)")

ControlCommand("setup", "", "ComboBox1", "SelectString", "French (France)")

ControlCommand("setup", "", "ComboBox1", "GetCurrentSelection", "French (France)")

Posted Image

I'll appreciate any help

Regards

coucou

Share this post


Link to post
Share on other sites



Hello coucou,

I personally had some problems to in getting the right selection on a ComboBox and was unable to do it by using the ControlCommand().

So.. I just used a ControlFocus and send() combination

Send("{UP}{UP}{UP}{UP}") ;this is to make sure that the first control is selected so that you can go down from here.
Send("{DOWN}{DOWN}") ; I see that you want to choose the third control.

I am interested as well how to get the ControlCommand to work on this.

Hope it will work with you.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi Pfex and TNX

here easiest command (tested workig)

Send("{TAB 2} f {ENTER}"); f=french - e=english - g=germain

As well as you i'm looking for an elegant solution using ComboBox and the ControlCommand().

Regards

coucou

Edited by coucou

Share this post


Link to post
Share on other sites

did you try

WinWait("setup")
ControlSend ( "setup", "", 1001, "F"  )

coucou is not the rigth word to use in the autoit forum as in french it means a bird which put his egg in another bird nest. When the coucou is born it pulls out the other eggs which are in the nest, just to be the sole bird fed by the parents.

Share this post


Link to post
Share on other sites

Hi tresa,

tested not working

WinWait("setup")
ControlSend ( "setup", "", 1001, "F"  )

mine here above works like a charm

Send("{TAB 2} f {ENTER}"); f=french - e=english - g=germain
but still i'm looking for an elegant solution using ComboBox and the ControlCommand().

BTW, coucou in french is another word for HELLO

Regards

coucou

Share this post


Link to post
Share on other sites

Hi tresa,

tested not working

WinWait("setup")
ControlSend ( "setup", "", 1001, "F"  )
and with ?

WinWait("setup")
ControlSend ( "setup", "", 1001, "f{ENTER}"  )

Share this post


Link to post
Share on other sites

Hi tresa,

NO one working.

Doesn't matter... I've my working solution anyway but i'm looking for how ComboBox working

coucou

Share this post


Link to post
Share on other sites

Really, NO one can show how CORRECT using ComboBox and the ControlCommand()?

Regards

coucou

Share this post


Link to post
Share on other sites

Hi googemyster,

Sorry for the delay, i was out.

Tested not work's

BTW, what should be 1001 in ControlFocus and ControlClick command lines?

TNX

coucou

Share this post


Link to post
Share on other sites

The title is Setup, not setup.

;)

Share this post


Link to post
Share on other sites

The title is Setup, not setup.

;)

both tested... not works

Regards

coucou

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
Sign in to follow this  
Followers 0