Jump to content

Recommended Posts

Posted

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?

Posted

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

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
  • Recently Browsing   0 members

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