Sign in to follow this  
Followers 0
tom77757

Selecting an item from a combobox list.. please help

4 posts in this topic

Im newbie when it comes to Autoit scripting. Im trying to select an item from a combobox list. How would do that? This is what I tried.

ControlClick Test "", 1006,"ComboBox1")

ControlCommand ( "Test", 1006, "ShowDropDown")

ControlCommand ( "Test", "", 1006, "SetCurrentSelection",Static3)

Thanks,

Tom

Share this post


Link to post
Share on other sites



Hi Zedna,

I tried what you have suggested and still it didn't work, Do you know why? I added a message box to see the string and it returned 0.

ControlClick("test", "", 9,"ThunderRT6ComboBox1")
$i = ControlCommand("Test","",'ThunderRT6ComboBox1', 'FindString', 'ORADBC1')
ControlCommand ( "Test", "", "ThunderRT6ComboBox1", "SetCurrentSelection",$i)
MsgBox(0,"test",$i)

Thanks,

Tom

Share this post


Link to post
Share on other sites

Problem is in ThunderRT6ComboBox1.

This mean it's not a standard ComboBox control and ControlCommand doesn't not work with non standard controls.

So use Send() or ControlSend()

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