Does TCC receive any notifications when a console is attached or detached
from TCMD?
Vince, I would guess that 99% of the time once someone starts a TCC
session they either run stand-alone or within TCMD. The few times they
detach the tab or attach could be addressed with a simple enhancement to
your plugin.
So, check whether attached or detached when the plugin is initialized and
save that away. Then just assume that is the status each time your
keystroke plugin runs.
You could then have an update command that re-checks and modifies your
saved status. You could even add it to one of the special post command
aliases.
-Scott
rconn <> wrote on 10/24/2009 09:07:21 AM:
> Quote:
>
> > This, inside the key handler, was the problem:
> >
> > if ( QueryIsTCMD() ) // help in the status area
> > return 0;
> > // else check for key to dismiss help dlg (console)
> >
> > Would QueryIsTCMD() cause an undesirable inreraction?
>
> It won't be harmful, but it'll definitely be slow. QueryIsTCMD creates a
> pipe, writes some data to it & waits for TCMD to read the data and
respond.
> But TCMD only looks for the pipe every 30ms (for performance reasons),
so
> it's not a very good idea to try to beat on it every keystroke.
>
>