tugger Posted October 24, 2006 Share Posted October 24, 2006 Okay, I'm a newbie to scripting, and I am using Autoit to automate a quite complex software install for me. This install has about 20 different configuration windows and so far creating the script has been quite easy. I am however stuck on a window that has 2 list boxes linked with a dropdown (described in the active window as a 'ComboBox1') [see attached] I need to select everything in both list boxes. Normally I would select 'products' in the dropdown, click the top product, and shift+click the bottom one, then select configurations from the dropdown and repeat to select all the configurations... and then 'next'. What commands can I use in Autoit to acheive this..?? This is a great piece of software btw. Tugger Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 24, 2006 Moderators Share Posted October 24, 2006 Look at the Control* commands/functions in the help file. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
tugger Posted October 24, 2006 Author Share Posted October 24, 2006 Look at the Control* commands/functions in the help file.Thanks smoke, the control list has got through most of this install, but I just can't find a 'selection' control that fits the bill. I have tried unsuccessfully with SetCurrentSelection, but that may be me using it in the wrong context.tug. Link to comment Share on other sites More sharing options...
this-is-me Posted October 24, 2006 Share Posted October 24, 2006 Try ControlCommand "SelectString". Who else would I be? Link to comment Share on other sites More sharing options...
tugger Posted October 24, 2006 Author Share Posted October 24, 2006 Try ControlCommand "SelectString".Okay, thanks for that.Using 'SelectString' to try to select the PRODUCTS option, the dropdown opens, but CONFIGURATIONS remains firmly selected.Half a step there, just struggling to select PRODUCTS, and then multiselect all the options in the Products ListBox.tug Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 24, 2006 Moderators Share Posted October 24, 2006 Okay, thanks for that.Using 'SelectString' to try to select the PRODUCTS option, the dropdown opens, but CONFIGURATIONS remains firmly selected.Half a step there, just struggling to select PRODUCTS, and then multiselect all the options in the Products ListBox.tugYou need to know what you are lookgin for ahead of time. "SelectString" is only for ListBox or ComboBox, so you need to know the "exact" string you want to find.Also keep in mind, not all controls can be automated with AutoIt. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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