@SELECT

Print Topic  Return to Overview  Previous Topic  Next Topic 

@SELECT[filename,top,left,bottom,right,title[,1]]:  Pops up a selection window with the lines from the specified file, allowing you to display menus or other selection lists from within a batch file. You can move through the selection window with standard popup window navigation keystrokes, including character matching (see Popup Windows for details; to change the navigation keys see Key Mapping directives).

 

Filename must be in quotes if it contains white space or special characters. The file size is limited only by available memory. To select from lines passed through input redirection or a pipe, use CON: as filename. To select from lines in the Windows clipboard, use CLIP: as filename.

 

If you use the optional 7th parameter 1 (immediately after the window title), the list will be sorted alphabetically.

 

Return value:

 

the text of the line the scrollbar is on if you press Enter
an empty string if you press Esc.

 

Examples:

 

call %@select["d:\path\my menu.txt",5,10,15,40,Select an option]

help %@word["=",0,%@select[d:\path\tcmd.ini,0,0,10,40,Select a directive]]

 

Topic "f_select.htm" last edited 4/26/2008. ©2008  JP Software, Inc.
Keywords: @SELECT,SELECT