Jump to content
Sign in to follow this  

Get all open window info to restore programs

Recommended Posts

I think this code points me in the right direction, but I was wondering if anyone knew of an easy way to put this information in a text file so I can extract it later? I'm looking to store the information, so I can make a macro to restore the windows to their recorded state.

$var = WinList()

For $i = 1 to $var[0][0]

; Only display visble windows that have a title

If $var[$i][0] <> "" AND IsVisible($var[$i][1]) Then

MsgBox(0, "Details", "Title=" & $var[$i][0] & @LF & "Handle=" & $var[$i][1])



Func IsVisible($handle)

If BitAnd( WinGetState($handle), 2 ) Then

Return 1


Return 0



Any suggestions on how anyone would do this?



Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...