Jump to content

How to set checkbox in a list box?


Guest DavidTilman
 Share

Recommended Posts

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").

Link to comment
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)

Link to comment
Share on other sites

  • Developers

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...

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...