Jump to content

record variables without ini


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

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
Link to comment
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
 Share

  • Recently Browsing   0 members

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