Identity of active window

May 29, 2008
529
3
Groton, CT
#1
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?
 
#2
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.
Code:
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