NELyon Posted July 9, 2008 Share Posted July 9, 2008 I'm making a small script to allow me to control the transparency of windows with a GUI. This is the isolated portion of code that I am having trouble with. Global $sTitles $azTitles = WinList() For $i = 1 To $azTitles[0][0] If WinGetState($azTitles[$i][0]) = 2 Then $sTitles &= $azTitles[$i][0] & "|" EndIf Next This is meant to build a string of visible windows for use in a Combo box. It works fine if I remove the WinGetState() call, but then I get those pesky hidden windows that you couldn't make transparent anyway. I'm sure this is just something simple that I'm missing. Thanks for the help. Link to comment Share on other sites More sharing options...
monoceres Posted July 9, 2008 Share Posted July 9, 2008 The values returned by WinGetState is or'ed so you need to use BitAND(). If BitAND(WinGetState("AutoIt Help"),2)=2 Then ;... muttley Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
NELyon Posted July 9, 2008 Author Share Posted July 9, 2008 Ha. Thanks. 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