Hi Sherry, As always great advice.
To refine this code, would it be possible to attach an ampersand(@) to the individual vector lines, so that once the vector items are shown as menu you would only need to enter the respective ampersand linked character, for instance if "Text&1" could be used, hitting the "1" key would directly select that item, and then only "enter" need to be hit to trigger the underlying script. Thanks again for your assistance. Cheers --- In [email protected], "Sheri" <[EMAIL PROTECTED]> wrote: > > Another possibility would be to use a simple menu: > > local v=vec.create(4) > v[0]="Text0" > v[1]="Text1" > v[2]="Text2" > v[3]="Text3" > > local i=v.showmenu > > if (i>-1) do > local scriptchoice="script"++i > call(scriptchoice) > endif >
