Jump to content

Help on how to select from ComboBox


coucou
 Share

Recommended Posts

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

Link to comment
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.

Link to comment
Share on other sites

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
Link to comment
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.

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...