Guest DavidTilman Posted December 6, 2004 Posted December 6, 2004 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").
JSThePatriot Posted December 6, 2004 Posted December 6, 2004 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)
Developers Jos Posted December 6, 2004 Developers Posted December 6, 2004 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.
JSThePatriot Posted December 7, 2004 Posted December 7, 2004 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 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)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now