Jump to content

select combobox in IE


Recommended Posts

To select specific combobox item in IE, I tried this below.

ControlClick("::: BLAH ::: -","","[CLASS:Internet Explorer_Server;INSTANCE:1]","left",1,434,149)

ControlSend("::: BLAH ::: -","","[CLASS:Internet Explorer_TridentCmboBx;INSTANCE:3]","{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}")

also I wondered this is right way to select specific combobox. cause it seems really terrible.

anyways it didn't work and still don't know why. it just appears that first item in combobox was selected.

Im gonna so glad if anyone can tell me how to do it.

any response is welcome.

Link to comment
Share on other sites

To select specific combobox item in IE, I tried this below.

ControlClick("::: BLAH ::: -","","[CLASS:Internet Explorer_Server;INSTANCE:1]","left",1,434,149)

ControlSend("::: BLAH ::: -","","[CLASS:Internet Explorer_TridentCmboBx;INSTANCE:3]","{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}")

also I wondered this is right way to select specific combobox. cause it seems really terrible.

anyways it didn't work and still don't know why. it just appears that first item in combobox was selected.

Im gonna so glad if anyone can tell me how to do it.

any response is welcome.

That first one is either an IE window or an embedded IE control. I'm not sure about the second, but if it is an HTML document element then you should be using _IEFormElementOptionselect() on it (see help file).

:P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...