How to set checkbox in a list box?

Recommended Posts

Guest DavidTilman

Guest DavidTilman

I have an install program that I'm setting up for an auto install, which includes a list box with checkboxes to check what extra components I want installed. How can this best be handled? I wanted to avoid AutoIt's Send() function for sending keys, because it says its for active windows. The install might be running in the background if the user switches to another application. I can select the option in the list box by using ControlCommand() with "SelectString", but I can't check the check box for the list box item (I even tried ControlCommand() with "Check" after using the "SelectString").

Share this post

Link to post

Share on other sites

JSThePatriot 11

JSThePatriot 11

I have an install program that I'm setting up for an auto install, which includes a list box with checkboxes to check what extra components I want installed. How can this best be handled? I wanted to avoid AutoIt's Send() function for sending keys, because it says its for active windows. The install might be running in the background if the user switches to another application. I can select the option in the list box by using ControlCommand() with "SelectString", but I can't check the check box for the list box item (I even tried ControlCommand() with "Check" after using the "SelectString").

<{POST_SNAPBACK}>

You can do a ControlSend() using the proper classname. You will want to send a {SPACE} after you get the control to have focus.