1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Function to Return Selected Text

Discussion in 'Support' started by Jay Sage, Jan 7, 2011.

  1. Jay Sage

    Joined:
    Jun 2, 2008
    Messages:
    284
    Likes Received:
    1
    Is there any function/variable that will return the text that has been
    selected in the TCMD tab window?

    I was thinking of making a TCMD button that would do something with the
    text I had selected, such as building a command line to submit. For
    example, one might select a displayed file name and then click an "edit"
    button to create the command line "edit <selected text>".

    -- Jay
     
  2. Joe Caverly

    Joined:
    Aug 28, 2009
    Messages:
    730
    Likes Received:
    8
    Will the internal variable _SELECTED do what you want?

    Joe

    </selected>
     
  3. Jay Sage

    Joined:
    Jun 2, 2008
    Messages:
    284
    Likes Received:
    1
    On 1/7/2011 6:52 AM, Joe Caverly wrote:

    That's it! Thank you. The button I wanted to create is now working.

    I was looking for it in the help section on "Screen, color, and cursor"
    variables, but it's listed under "TCC status" variables. Rex, it might
    make sense to list it also where I was looking, since it does have
    something to do with the screen.

    -- Jay
     

Share This Page