coucou Posted November 20, 2006 Share Posted November 20, 2006 Hi,I'm looking for language selecting (see image bellow) from the script bellow without successHere 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 scriptRun("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 successControlCommand("setup", "", "ComboBox1", "SetCurrentSelection", "French (France)")ControlCommand("setup", "", "ComboBox1", "SelectString", "French (France)")ControlCommand("setup", "", "ComboBox1", "GetCurrentSelection", "French (France)")I'll appreciate any helpRegardscoucou Link to comment Share on other sites More sharing options...
Pfex Posted November 20, 2006 Share Posted November 20, 2006 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 More sharing options...
coucou Posted November 20, 2006 Author Share Posted November 20, 2006 (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 November 20, 2006 by coucou Link to comment Share on other sites More sharing options...
tresa Posted November 20, 2006 Share Posted November 20, 2006 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 More sharing options...
coucou Posted November 20, 2006 Author Share Posted November 20, 2006 Hi tresa, tested not workingWinWait("setup") ControlSend ( "setup", "", 1001, "F" ) mine here above works like a charmSend("{TAB 2} f {ENTER}"); f=french - e=english - g=germainbut 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 More sharing options...
tresa Posted November 20, 2006 Share Posted November 20, 2006 Hi tresa, tested not workingWinWait("setup") ControlSend ( "setup", "", 1001, "F" ) and with ? WinWait("setup") ControlSend ( "setup", "", 1001, "f{ENTER}" ) Link to comment Share on other sites More sharing options...
coucou Posted November 20, 2006 Author Share Posted November 20, 2006 Hi tresa, NO one working. Doesn't matter... I've my working solution anyway but i'm looking for how ComboBox working coucou Link to comment Share on other sites More sharing options...
coucou Posted November 22, 2006 Author Share Posted November 22, 2006 Really, NO one can show how CORRECT using ComboBox and the ControlCommand()? Regards coucou Link to comment Share on other sites More sharing options...
coucou Posted November 27, 2006 Author Share Posted November 27, 2006 Hi googemyster,Sorry for the delay, i was out. Tested not work'sBTW, what should be 1001 in ControlFocus and ControlClick command lines?TNXcoucou Link to comment Share on other sites More sharing options...
MHz Posted November 27, 2006 Share Posted November 27, 2006 The title is Setup, not setup. Link to comment Share on other sites More sharing options...
coucou Posted November 27, 2006 Author Share Posted November 27, 2006 The title is Setup, not setup.both tested... not worksRegardscoucou Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now