Jump to content
Sign in to follow this  
tom77757

Selecting an item from a combobox list.. please help

Recommended Posts

tom77757

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
tom77757

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

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  

×