Get default value of combo box without changeHi,
Is there a way to get a default value without any click?
I want to save the default value in a variable which in this case should be "one". Any Suggestion?
Here is what I tried
Names Default To Here( 1 );
New Window( "Example",
cb = Combo Box(
{"One", "Two", "Three"},
<<SET function=""></SET>Automation and ScriptingRe: Get default value of combo box without changeI would probably do something like this.
default = (cb << Get Items)[1];
Re: Get default value of combo box without changeI usually use initialization values at the start of script (or configuration file). Below is simple example how those could be used here
Names Default To Here(1);
cb_vals = {"One", "Two", "Three"};
init_cb_val = "Two";
New Window("Example",
cb = Combo Box(
cb_vals,
<<SET function=""></SET>
You can then initialize the selectors final value with same init_cb_val if you want to