Jump to content
Sign in to follow this  


Recommended Posts


Hello. I'm a beginner in AutoIt. I made a scrip to choose a data from a check list box.

The source code:

<form action=............................ method=post>

<p align=center>

Please Select 1: <select name=A><option value=163979>ABC<option value=477556>XYZ<option value=477564></select> <input type=submit value="OK!">


if in the source there's a name like this: <input type=submit name ="submit" value="OK!"> I can click the button OK of the check list box easily with the _IEFormElementGetObjByName to get the object.

But this time, in the page source there's no name but only the value, so that i can't use the _IEFormElementGetObjByName anymore. So I use this scrip:

ControlClick("Tittle", "", "[CLASS:Internet Explorer_TridentCmboBx; INSTANCE:1]")

$hwnd = _IEPropertyGet($oIE, "hwnd")

ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}")

_IELoadWait ($oIE)

It does work with the IE6, but when I use it on IE7, it doesn't work anymore. What should I do?

Please help me. Thank you.

Edited by meomuop

Share this post

Link to post
Share on other sites

I changed my mind and use this script, hoped it works:

$colTags = _IETagNameGetCollection($oIE, "input")

For $oTag In $colTags

If _IEPropertyGet($oTag, "innertext") = "OK!" Then

_IEAction($oTag, "click")





But again and again, It works with IE6 and doesn't work with IE7. What's wrong with IE7 or my script? How can I click this no-name button in IE7?

Edited by meomuop

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