Identity of active window

May 29, 2008
Groton, CT
Is there a way for a .btm running in the background (and which does not have input focus) to find the identity of the active window?
May 20, 2008
Syracuse, NY, USA
Is there a way for a .btm running in the background (and which does not have input focus) to find the identity of the active window?
My SYSUTILS plugin has @FGWIN which will return the properties you ask for.
v:\> help @fgwin
@FGWIN[TCPMXYWH] = word list of spec'd foreground window properties
Options: Title, Class, Pid, Module, X(pos), Y(pos), Width, Height

v:\> delay 5 & echo %@fgwin[TCPMXYWH]
"Identity of active window | Take Command Windows command processor - Mozilla Fi
refox" "MozillaWindowClass" 2528 "l:\firefox\firefox.exe" 2 1 1272 993
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly The requested lookup key was not found in any active activation context Support 3
vefatica IFTP and active FTP Support 13
S How to? Identify which monitor is active Support 5
S DESKTOP - identify current active ? Support 4
C Active FTP Problems Support 4
Juanma Barranquero Windows crash on suspend/hibernate with TCMD active Support 10
N TCC doesnt respect active codepage? 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
G Press on another Window Support 24
Peter Murschall IDE: After undocking the command expansion Window is offended Support 2
T TCC Window Background Color Anomaly Support 9
A v25 BC break in WINDOW and ACTIVATE Support 12
vefatica BTM, elevated, console window caption? Support 4
W Hide window Support 7
R How to? START program as top window? Support 2
P No linefeed on last line of console window Support 2
scottb How to? ipconfig output in current window Support 4
R How to? Change TCMD tab font size in window menu Support 3
T Fixed IDE locks up if edit window for running batch is closed Support 6
E How to change window title tcmd window - not tcc window Support 1
jaltman tcmd 21.0.19 win10 16179 console window loses content Support 2
B How to get window status of a running app Support 3
James Miller tcc shell window does not disappear Support 18
M Call History popup-window? Support 0
D How cut in TCC tab window Support 5
S Paste in TCC/TCMD window is very slow [v20.0.22] Support 13
C How to? Feed keys to firefox (Yahoo Mail) window Support 4
C How to? Feed keys to firefox (Yahoo Mail) window Support 0
C How to? run a BTM in elevated, inv tcc tab window Support 9
vefatica Ctrl-Enter in command history window? Support 8
D Take Command tab only uses half of window Support 1
CWBillow Power Shell in a TCMD window Support 5
vefatica TCC window caption in elevated session? Support 5
vefatica New File Explorer window Support 1
T 64 bit TCCLE appears to crash when opening tcc.exe from within tcc.exe window Support 7
D WAD TASKBAR window commands confuses our friends at MS Support 4
F EDIT FIELD in a popup window Support 2
samintz Flashing window Support 4
fpefpe How to? folder / explorer window Support 10
C Msg Popup window does not close Support 8
Jay Sage Failure of ACTIVATE to Set a Window Position Support 3
R Minor Cosmetic Issue in Take Command Window Support 2

Similar threads