mschol Posted August 25, 2006 Posted August 25, 2006 i want to fill a combobox with the contents of a array the array needs to be like this: array( key1 => value1, key2 => value2, key3 => value3, ) i don't really know how this is called in english, but is it possible to create such an array? or is there maybe a better way to fill a combo box with a list of keys. little explanation of what I'm trying to make: on the GUI i select in a drop down box a certain key (lets say: numpad 6 ) now when i press numpad 6 a certain function is called which does a couple of things. in code i think it looks a bit like this: $hotkeycombo1 = GUICtrlCreateCombo($array,10,10,100); HotKeySet($hotkeycombo1,"money"); Func money() ... EndFunc $array has to contain a array with keys and values (so you see the key and in the background the value gets assigned to $hotkeycombo1 anyone who can help me a little?
Xenobiologist Posted August 25, 2006 Posted August 25, 2006 Hi, have a look at IniReadSection() So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
randallc Posted August 26, 2006 Posted August 26, 2006 Hi, Use a 2-dimension array, so each item has a number of different values which can be written as "keys"/ "values" See examples in my array2D.au3 from link in signature Best, Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW
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