Sign in to follow this  
Followers 0
jmc

Controlling check boxes inside SysListView via AutoItX?

1 post in this topic

I need to find all that are checked boxes and uncheck them and apply the change and 'DoMyStuff'.

Next I'll need to go thru all the checkboxes and toggle them, applying the change each time and 'DoMyThing'

From various testing and reading, it seems there no quick way to do this. So my general plan of attack is:

Get control positions using AU3_ControlGetPos functions.

GetItemCount using AU3_ControlListView .

For each item //uncheck all

{

using position and pixel function to determine if it's check box.

Then using position and pixel function to determine if it's check-marked, if so use AU3_ControlClick to un-checkmark it.

}

Apply changes.

'DoMyStuff'

For each item //toggle each

{

using position and pixel function to determine if it's check box, if so use AU3_ControlClick to checkmark it. Remember this position.

Apply changes.

'DoMyThing'

Using the remembered positions with AU3_ControlClick, un-checkmark it

Apply changes.

}

Since the number of items may vary, I will also have to take into consideration scrolling.

Question is: is this the best way to do it? ie are my on the right track, or totally out to lunch?

post-58738-0-18862100-1297103846_thumb.p

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  
Followers 0