10-21-2010, 07:09 PM
This is not exactly what you need.
Requires some trigger.
To enable keyboard for selecting menu items, use & character in snippet names. For example, if snippet name is "test&2", in menu it will be "test2", and you can press 2 to select it.
Requires some trigger.
str dbFile="$my qm$\snippets.db3"
str s=RtfSnippets(3 dbFile "") ;;get list of snippet names from database
MenuPopup m.AddItems(s 1) ;;create menu
int i=m.Show(0 0 1) ;;show menu and wait
if(i=0) ret
m.GetItemText(i s) ;;get selected snippet name
RtfSnippets 1 dbFile s ;;get snippet from database, and paste
To enable keyboard for selecting menu items, use & character in snippet names. For example, if snippet name is "test&2", in menu it will be "test2", and you can press 2 to select it.