Sign in to follow this  
Followers 0
Guest DavidTilman

How to set checkbox in a list box?

4 posts in this topic

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



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.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

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

JS

<{POST_SNAPBACK}>

Additional info: {SPACE} will toggle a checkbox, {NUMPADADD} will select and {NUMPADSUB} will deselect it.

The ControlCommand should also work...


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Additional info: {SPACE} will toggle a checkbox,  {NUMPADADD} will select and {NUMPADSUB} will deselect it.

The ControlCommand should also work...

<{POST_SNAPBACK}>

Ah thanks for that tidbit, I didnt know about the numpad stuff :idiot: That is cool I may have to use that.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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