- Nov
- 344
- 10
I usually run processes in TCC windows that take quite some time to complete (pdir /S/(m) in large directories, moving large amounts of files from one drive to another, etcetera). Instead of staying still and watching them run, I usually change focus to another window to do something else while those processes run. This leads to time wasted, as it usually takes me some time to realize "hey, it should be done already" and checking on it. That, or checking too early and seeing the job is still running...
I've tried running these commands with an appended & beepbeep.btm, or running them as an argument to a batchfile (beepmewhendone.btm pdir ...), but it's cumbersome and I tend to forget to do it.
I was thinking perhaps a better way to do this would be to add a small alias to the prompt variable (like the cbatt alias in the help page for the prompt command), BUT it would be supremely annoying if it beeped all the time. Ideally, the beep should sound ONLY if the TCC window isn't active at the moment.
So, how can TCC tell, through a function or variable, wether its own window is the active one at the moment?
I've tried running these commands with an appended & beepbeep.btm, or running them as an argument to a batchfile (beepmewhendone.btm pdir ...), but it's cumbersome and I tend to forget to do it.
I was thinking perhaps a better way to do this would be to add a small alias to the prompt variable (like the cbatt alias in the help page for the prompt command), BUT it would be supremely annoying if it beeped all the time. Ideally, the beep should sound ONLY if the TCC window isn't active at the moment.
So, how can TCC tell, through a function or variable, wether its own window is the active one at the moment?