1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Identity of active window

Discussion in 'Support' started by dcantor, Sep 15, 2013.

  1. dcantor

    Joined:
    May 29, 2008
    Messages:
    508
    Likes Received:
    3
    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. vefatica

    Joined:
    May 20, 2008
    Messages:
    8,058
    Likes Received:
    30
    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
    
     
  3. dcantor

    Joined:
    May 29, 2008
    Messages:
    508
    Likes Received:
    3
    Thanks, Vince.
     

Share This Page