Take Command / TCC Help v. 13.03

@SELECT

Hide Navigation Pane

@SELECT

Previous topic Next topic No directory for this topic No expanding text in this topic  

@SELECT

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for expanding text JavaScript is required for the print function Mail us feedback on this topic!  

Comments (...)

@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 string matching with wildcards or regular expressions (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 the specified width is < 150, the top, left, bottom, right parameters are assumed to be rows/columns relative to the TCC window.  If the width is >= 150, the parameters are assumed to be screen coordinates (in pixels).

 

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",50,100,175,400,Select an option]

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

 

Comments (...)