Jump to content

Selecting an item from a combobox list.. please help


Recommended Posts

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

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

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...