Jump to content

Recommended Posts

Posted (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 by sccrstvn93
Posted (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 by sccrstvn93
Posted (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 by sccrstvn93

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...