qazwsx Posted July 26, 2007 Share Posted July 26, 2007 (edited) Func _hide() MsgBox(0, "", "hide") $list = WinList() For $i = 1 To $list[0][0] If $list[$i][0] <> "" And $list[$i][0] <> "Program Manager" And _IsVisible($list[$i][1]) Then WinSetState($list[$i][1], "", @SW_HIDE) EndIf Next Sleep (1) EndFunc ;==>_hide Is there a way to record which $list[$i][0] meet the if statement without the use of an ini file? Edited July 26, 2007 by sccrstvn93 Link to comment Share on other sites More sharing options...
bluebearr Posted July 26, 2007 Share Posted July 26, 2007 Sorry, I don't see an INI file referenced in this code. BlueBearrOddly enough, this is what I do for fun. Link to comment Share on other sites More sharing options...
qazwsx Posted July 26, 2007 Author Share Posted July 26, 2007 (edited) yeh i havent used an ini but i want to record each of the arrays (i dunno wat to call them, not the whole array just one of them) that meets the if criteria without using an ini file. Edit: i need to use them later in the program. Edited July 26, 2007 by sccrstvn93 Link to comment Share on other sites More sharing options...
mikehunt114 Posted July 26, 2007 Share Posted July 26, 2007 Throw them in a new array... IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
qazwsx Posted July 26, 2007 Author Share Posted July 26, 2007 Thats wat i was thinking but dont you have to have the array defined before you can use it? Link to comment Share on other sites More sharing options...
orange Posted July 26, 2007 Share Posted July 26, 2007 Thats wat i was thinking but dont you have to have the array defined before you can use it? dim $NewArray [ ubound($OldArray)] for $i = 0 to ubound($NewArray) - 1 $NewArray[$i] = $OldArray[$i] next Link to comment Share on other sites More sharing options...
qazwsx Posted July 26, 2007 Author Share Posted July 26, 2007 (edited) Thx orange i have been trying to figure out how to do that for a long time. For some reason its not bringing the windows back. Func _hide() MsgBox(0, "", "hide") $list = WinList() Global $NewArray [UBound ($list)];;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; For $i = 1 To $list[0][0] If $list[$i][0] <> "" And $list[$i][0] <> "Program Manager" And _IsVisible($list[$i][1]) Then;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; WinSetState($list[$i][1], "", @SW_HIDE) $NewArray[$i] = $list[$i][1];;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; EndIf Next EndFunc ;==>_hide Func _show() MsgBox(0, "", "show") For $i = 0 To $list[0][0] - 1 WinSetState($NewArray[$i], "", @SW_SHOW);;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Next EndFunc ;==>_show It hides them fine. But I don't think the handles are not recorded properly into the new variable Edited July 26, 2007 by sccrstvn93 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