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

Clear accumulated keystrokes

Discussion in 'Suggestions' started by vefatica, Oct 4, 2017.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    I have BTMs which run for a long time and are in visible consoles (so I can monitor output). That provides plenty of opportunity for those TCCs to collect unintended keystrokes (by vitrue of user error). When I terminate such a BTM with Ctrl-C, all the accumulated keystrokes are pumped to the command line. I can avoid it like this

    Code:
    on break ( inkey /c /w0 %%zz & quit )
    
    Can you make that easier?
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    Maybe even simply "INKEY /C".
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,860
    Likes Received:
    83
  4. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    Yes, but it expects more and gives a usage message.
     
  5. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    It'd be easy enough to add as a plugin command. You could even hook INKEY, check for a lonesome /C and handle that yourself, otherwise pass control back to TCC.
     

Share This Page