Change in Behavior of Activate Command

Jun 2, 2008
376
2
Newton, MA
I have a batch file for resetting the position of various windows. With TCC17, the command "POS FOX" resets the position of my Firefox window and makes it active. With TCC19, the same command resets the position but does not make Firefox the active window.

I see that there is a note in the version-19 help about the Activate command running in a batch file, but I don't see how this can be a Windows issue when the same command in the same batch file behaves differently (though I'm sure that Rex will explain why this is happening).

I don't have any strong feeling about which behavior I prefer.

-- Jay
 

rconn

Administrator
Staff member
May 14, 2008
12,367
150
Not reproducible here. What is the exact syntax you're using?

There was a (Windows) bug in v17 x64 where it wouldn't always foreground the window when running TCC inside a TCMD tab window; v19 has a workaround for that.

ACTIVATE can be a little problematic with some apps, particularly those with multiple top-level windows (like FireFox), and some apps will not let themselves be resized and/or moved.
 
Jun 2, 2008
376
2
Newton, MA
I just modified the batch file to echo the command. When I run "position firefox", the following command is generated:

activate "*Mozilla Firefox" /pos=0,0,1115,985​

I have both TCC17 and TCC19 running in tabs in TCMD17. With TCC17, the Firefox window is not only repositioned but also brought to the foreground. With TCC19, it remains in the background (behind TCMD).

The difference in behavior is the same when other windows are activated using the batch file (e.g., my VEDIT text editor or Quicken) or when the "activate" command is entered directly at the command prompt (so it's not a batch-file issue).

Ah, but it appears to be a TCMD issue. When I detach the TCC19 session from TCMD (version 17), the designated task does come to the front. I had not yet tried running TCMD19 but did so just now. The problem does not occur with TCC19 in a TCMD19 tab. I guess I better make the full switch.
 
Last edited:

rconn

Administrator
Staff member
May 14, 2008
12,367
150
Ah, but it appears to be a TCMD issue. When I detach the TCC19 session from TCMD (version 17), the designated task does come to the front. I had not yet tried running TCMD19 but did so just now. The problem does not occur with TCC19 in a TCMD19 tab. I guess I better make the full switch.

The interprocess communication between TCC and TCMD is tied to the version. Running a mismatch is not recommended, and depending on the command, may not do anything at all.
 
Similar threads
Thread starter Title Forum Replies Date
H Behavior change re piping a string to a Java program Support 1
D Fixed Change in behavior of variable expansion between 16 and 17 Support 3
Peter Bratton @ping behavior change Support 2
R History window wrong size, can't remember size change Support 12
Alpengreis [FORUM] After change the font, bold is without effect Support 7
R How to? Change TCMD tab font size in window menu Support 3
E How to change window title tcmd window - not tcc window Support 1
Alpengreis Small things to change in installer and after installed Everything Support 0
Charles Dye File completion change Support 11
T Change language in script Support 4
I Change value of a variable while debugging Support 3
T Change language after installation Support 4
WadeHatler Fixed Breaking change in Expression evaluation (.and.) in v17 Support 6
Peter Bratton Change in scrput behaviour Support 4
A How to? Can't change directory ("cd") into system hidden files Support 13
J Change folder TCC starts in Support 2
vefatica A small change Support 7
ehab aboudaya How to? change ALT-F6 to another key Support 1
S How to? Change thread prefix? Easy "create thread" method? Support 8
S Terminology change Support 2
T signaling firstcondition and cannot change colors Support 8
newbie Change percent-sign to anything-else in filename Support 24
nikbackm Change format of DIR totals Support 3
Stefano Piccardi did the forum software change in the last two days? Support 2
nikbackm LocalHistory change Support 3
H @XMLNODES - New behavior? Support 3
Jesse Heines Strange Line Wrapping Behavior Support 14
Jay Sage Baffling Behavior With TPIPE Support 5
D Pasting Unicode data has different behavior on TCC and CMD Support 2
P "Set" command behavior - a bug? Support 3
P LOG command behavior Support 3
I Puzzling Behavior of TDRV and DEL Support 2
N Fixed Strange dir behavior Support 6
A Inconsistent @WINPOS // ACTIVATE /POS= behavior Support 0
P Strange mouse behavior with list Support 2
R Find in screen buffer - find next behavior Support 0
D v20 code page behavior changes Support 2
D Strange DO behavior with /O Support 5
deleyd Fixed Behavior different than CMD Support 1
jwiede Difference in "FOR /F" behavior (?) Support 1
R Difference in behavior of RMDIR vs. CMD.EXE? Support 5
D Unexpected behavior Support 8
D Bash-like Esc->Backspace behavior Support 4
C ZIP behavior Support 5
Charles Dye Odd behavior after using OPTION "Advanced" tab Support 2
C odd behavior of "dir" Support 0
M How to? Work around an unexpected and very inconvenient behavior of TCC... Support 26
A expected behavior of move /sx Support 14
M WAD A complaint regarding a very irritating TCC installation behavior... (Bug?) Support 4
S Inexplicable behavior difference in nearly identical shortcuts Support 6

Similar threads