D4rk^S0ul Posted January 23, 2007 Share Posted January 23, 2007 (edited) Is there a easier way to get the currently active window without using winlist and winactive to scroll through all the windows to find the active 1? Edited January 23, 2007 by D4rk^S0ul Link to comment Share on other sites More sharing options...
Valuater Posted January 23, 2007 Share Posted January 23, 2007 what do you want to know #include <Array.au3> $asControls = StringSplit( WinGetClassList( "", "" ), @LF ) _ArrayDisplay( $asControls, "Class List of Active Window" ) $size = WinGetPos("") MsgBox(0, "Active window stats (x,y,width,height):", $size[0] & " " & $size[1] & " " & $size[2] & " " & $size[3]) $size = WinGetClientSize("") MsgBox(0, "Active window's client size is (width,height):", $size[0] & " " & $size[1]) MsgBox(64, "Title",WinGetTitle("")) ; returns the active window's title there are many others too! SmOke_N wrote a UDF for this - its in Autoit Wrappers 8) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now