Identity of active window

May 29, 2008
572
4
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
12,165
133
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.
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
 

Similar threads