Jump to content

Recommended Posts

Posted

Since every check box has its unique name and I'm unable to know all the names in advance, is autoit still able to check all boxes in a form and then submit?

Posted

Is it your own AutoIt Gui? Then use an array to hold checkbox-id instead of unique names. So you can set state in an loop.

Best Regards BugFix  

Posted

Is it your own AutoIt Gui? Then use an array to hold checkbox-id instead of unique names. So you can set state in an loop.

Well, it's not my own GUI.

When I studied help,

; *******************************************************

; Example 1 - Open a browser with the form example, get reference to form, select and

; deselect the checkboxes byValue. Since $s_Name is not specified, operate

; on the collection of all <input type=checkbox> elements in the form

; Note: You will likely need to scroll down on the page to see the changes

; *******************************************************

It seems that _IEFormElementCheckboxSelect is able to operate on all available checkboxes? But when I read along the example codes, I got confused because the example in the Help document does pass some arguments to _IEFormElementCheckboxSelect.

At any rate, the attempt of :

_IEFormElementCheckboxSelect ($oForm, "", "", 1, "byValue")

failed and nothing can be checked. Any idea?

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
×
×
  • Create New...