Press on another Window

Sep 8, 2008
30
0
In the Take Command window issue a long command like dir /s /b and whilst the information is scrolling, press a key in another application (in my case a Java application) and the TC stops updating until the button is release. The same does not happen with TCC LE or 4NT. Any ideas?
 
May 20, 2008
11,411
99
Syracuse, NY, USA
I couldn't get it to happen when I pressed a key (tried notepad and CMD as other windows). But TCMD's output is suspended when I hold the left mouse button down (anywhere).
 
Sep 8, 2008
30
0
My "stupid" mistake. I did not mean a keyboard key, I meant a Java Button which represents a key. (that was dumb of me). So we see the same anyway ie. left mouse button down. Do you see it works fine in TCC?
 
May 20, 2008
11,411
99
Syracuse, NY, USA
Yes, it's OK in TCC. I also tried ProcessMonitor, a continually-updating GUI app. It was not affected by holding a mouse button down.
 
May 20, 2008
11,411
99
Syracuse, NY, USA
TCC is a console app and doesn't support Windows messages. If it *could* do it, I'd do it there too.
You lost me! If there's output in progress in a TCMD tab and the user holds down the left mouse button in some other app's window (or even on the desktop) ... TCMD suspends output? That doesn't make much sense to me. Surely, TCMD can tell if the mouse is in the client area of a tab ... yes/no? I'm a little surprised that TCMD even knows that the mouse button is down when it's outside TCMD.
 

rconn

Administrator
Staff member
May 14, 2008
12,356
150
You lost me! If there's output in progress in a TCMD tab and the user holds down the left mouse button in some other app's window (or even on the desktop) ... TCMD suspends output? That doesn't make much sense to me. Surely, TCMD can tell if the mouse is in the client area of a tab ... yes/no? I'm a little surprised that TCMD even knows that the mouse button is down when it's outside TCMD.

If only life were as simple as everyone assures me it is ...

The problem is when you're marking text and you move the mouse slightly outside of the TCMD window (i.e., at the bottom because you want it to scroll, or off the right edge). Do you want TCMD in those instances to kill the selection, turn off marking, and resume scrolling? When you then drag the mouse back into the window you'll have a *different* start / end for your selection.
 
May 20, 2008
11,411
99
Syracuse, NY, USA
If only life were as simple as everyone assures me it is ...

The problem is when you're marking text and you move the mouse slightly outside of the TCMD window (i.e., at the bottom because you want it to scroll, or off the right edge). Do you want TCMD in those instances to kill the selection, turn off marking, and resume scrolling? When you then drag the mouse back into the window you'll have a *different* start / end for your selection.
Hmmm! I see.
 
Sep 8, 2008
30
0
1. You know when you move out of the area that the Window was being marked - like Excel
2. It surprises me that TCMD is poking its nose into Windows events when it does not have focus
 

rconn

Administrator
Staff member
May 14, 2008
12,356
150
1. You know when you move out of the area that the Window was being marked - like Excel
2. It surprises me that TCMD is poking its nose into Windows events when it does not have focus

You're stretching your argument with #2 - TCMD isn't "poking its nose into Windows events"; all it's doing is suspending updates while the left mouse button is down. That has no effect on any other Windows app.

And #1 only works after you've already clicked and dragged within the window. What do you want to happen if you click with the cursor on (or touching) non-client areas, borders, status bar, tab bar, etc.?

The current behavior is by design, has worked this way for many years, and the default behavior will definitely not be changed. You can submit a feature request in the suggestions forum if you want a new option that breaks existing behavior.
 
Sep 8, 2008
30
0
Your comment "stretching argument with #2". I know of no other application that listens to mouse / key events when it does not have focus. That's the meaning of focus

If you say by design then I would say poor design. I have used JPSoft products for years (1996) and just moved over to TC and no other product works this way.
I understand the issue of compatibility - so Yes if you could make it an option that would be appreciated. At the moment I can't use TC as is as I need the mouse pressed on another application to see the results on the TC window
 

rconn

Administrator
Staff member
May 14, 2008
12,356
150
Your comment "stretching argument with #2". I know of no other application that listens to mouse / key events when it does not have focus. That's the meaning of focus

TCMD does not listen to mouse or key events when it does not have focus. What it does do is check to see if the mouse button is down when it is updating the tab windows. This is by design, and was requested by other users. You're the first one to find this to be a problem. (Though apparently not enough of a problem to warrant a post in the Suggestions Forum?)
 
Sep 8, 2008
30
0
I don't have the source code but I think you are splitting hairs - ie. whether you listen to events or check events - the effect is the same. I cannot think of any other PC application that behaves in the same way. Anecdote. A friend of mine design the carburettor for a Chrysler car. He knew that the car would not start if parked at 4 degrees. When a user complained that his car did not start, the answer from Chrysler is that nobody else has complained about this. Just because nobody else comments - still does not mean that it is correct. I did not add as a suggestion as JPSoft think that it is correct so who am I to disagree?
 
Jan 21, 2011
20
0
Yeah, this is a bit odd.

What I would expect is that if you click on the TCMD window and then drag out, that it keeps the mouse 'grab' for the TCMD window until you release the mouse or move back into the window. But if you click outside of the TCMD window, nothing should happen within TCMD at all.

If you click outside the TCMD window, then drag into the TCMD window, you don't start selecting text anyway (at least, I haven't been able to here), so the 'feature' is a bit useless anyway. Normally selection only starts if you click inside the window.

So, I don't really see how this feature can be at all useful, other than as an unconventional way to pause the TCC output in a TCMD tab.

I'd expect that the way TCC (and CMD) work would be the right way - which is to pause the output while selection is held (even if you then drag out of the window).
 
Sep 8, 2008
30
0
Dear Mr.JPSoft
Please explain why you have implemented as is, for nobody has explained why - but you keep on saying it is by design
 
May 26, 2008
537
4
Pausing output on mouse click is a good idea for the selection reason mentioned. But the fact that it happens when TCMD is not the active window is absurd.
 
Sep 8, 2008
30
0
Any further update on this for actually I think the logic is backwards. Press mouse in the scrolling window and it does not stop it
 
May 20, 2008
11,411
99
Syracuse, NY, USA
Today, with v25.00.28 it seems that output in the TCMD tab will stop if and only if the left button is pressed ...

1. in any TCMD tab, or
2. in a v25 console window (not attached to TCMD).

That's a little peculiar but IIRC it's much better than it was a few months ago.
 
May 20, 2008
11,411
99
Syracuse, NY, USA
A quick test showed ...

In TCMD 24.02.51 output is suspended if the left button is pressed ANYWHERE.

In TCMD 25.00.30 and 26.02.42 output is suspended only when the left button is pressed in the TCMD window.
 
Similar threads
Thread starter Title Forum Replies Date
Chen Touboul Overtyping issue - i press the Insert key, help till press enter for new line in TCC Support 2
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
vefatica Another popup problem Support 10
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
M Another possibly strange remote registry issue Support 5
vefatica Another problem with build 22. Support 3
Patulus Yet another thread on CMD compatibility Support 16
M Take Command 18, migrating to another machine, license problem. Support 1
MickeyF Another TPIPE question Support 6
vefatica Another installer thingy Support 1
vefatica Another @EVERYTHING question Support 4
C Touch command — I Need to touch matching files in another directory. Support 5
M Another "What is wrong?" Support 8
Bill de Haan Another installation is in progress Support 6
fishman@panix.com Another Problem with The Installer Support 1
Charles Dye Another modest proposal Support 4
Dan Glynhampton Documentation v15 help: Another mailto: link oddity Support 0
M WAD Another weird copy command errror... Support 2
M Yet another strange something re something called "@TCONVERT" Support 8
Charles Dye Documentation Another help nit Support 3
K_Meinhard Documentation Another installer nit Support 1
ehab aboudaya How to? change ALT-F6 to another key Support 1
A How to? Pass output from ffind to another command in a BTM file Support 5
M Another simple question re. Take Command/TCC window witdth in characters... Support 16
Q TCC: (Sys) The process cannot access the file because it is being used by another process. Support 0
M Another bit of weirdness.... Support 0
S MOVE from FTP directory to another FTP directory - bug?? Support 2
vefatica Another debugger observation Support 12
vefatica Another DO /L question Support 1
M Another TCMD "crash" situation... Support 2
S Need help to execute TCC commands on another system Support 6
B TCC doesn't run using another user Support 2
H Another multiple FTP password prompt issue Support 2
Peter Bratton Another little bug? Support 1
M Another problem with renaming files... Support 3
nikbackm Another HISTORY dialog issue Support 0
vefatica Another help nit Support 12
S Another 4NT 8.02 vs TCC 9.02 diff - MOVE command Support 3
p.f.moore Running another batch file without CALL Support 7
R History window wrong size, can't remember size change Support 12
R @select inside alias gives different (insanely small) window Support 7
K_Meinhard How to? Help window position Support 7
D Directory History Window with wildcard search Support 3
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
L LIST's pop-up search loses focus in a Windows Terminal window Support 15
ntak About window size notification Support 6
R Batch Debugger Command Expansion Window Support 3
R How do I get a Git Bash shell to appear in TCC window? Support 7
Peter Murschall IDE: After undocking the command expansion Window is offended Support 2
T TCC Window Background Color Anomaly Support 9

Similar threads