rabbitkillrun2 0 Posted July 20, 2010 Hey, Is there any way to set the position in a combo box (like a user would do by clicking the arrow and picking an item)? I've looked through the help thing but didn't find anything. Thanks rkr Share this post Link to post Share on other sites
Jos 2,206 Posted July 20, 2010 Do you mean "how to set the default value" for the combobox? 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. Share this post Link to post Share on other sites
rabbitkillrun2 0 Posted July 20, 2010 No, how would I set the value of it at any given time during the application? Share this post Link to post Share on other sites
Yoriz 6 Posted July 20, 2010 (edited) You Could use ControlCommand with the "SetCurrentSelection, occurrence" command option ( use "FindString", 'string' with ControlCommand to get the occurance) or with "SelectString", 'string' command, or there is the functions from the GuiComboBox udf _GUICtrlComboBox_SetCurSel( use _GUICtrlComboBox_FindString or _GUICtrlComboBox_FindStringExact to get index). Edited July 20, 2010 by Yoriz GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF. Share this post Link to post Share on other sites
rabbitkillrun2 0 Posted July 20, 2010 (edited) Thanks. Trying that.I couldn't get SelectString to work on its own.Edit: Silly mistake. Edited July 20, 2010 by rabbitkillrun2 Share this post Link to post Share on other sites