Jump to content
Sign in to follow this  
cwem

check all boxes in a table

Recommended Posts

cwem

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?

Share this post


Link to post
Share on other sites
BugFix

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  

Share this post


Link to post
Share on other sites
cwem

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?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.