Jump to content

Gui Arrays


Recommended Posts

You mean something like this?

Opt("GUIOnEventMode",1)
Global $guicount=30
Dim $array[$guicount]
For $i=0 To Ubound($array)-1
    $array[$i]=GUICreate("Windows number: "&$i+1,Random(50,400,1),Random(50,300,1),Random(0,@DesktopWidth-30,1),Random(0,@DesktopHeight-30,1))
    GUISetOnEvent(-3,"close")
    GUISetState()
Next

Do
sleep(100)
Until False

            
            
Func close()
    GUIDelete(@GUI_WinHandle)
    $guicount-=1
    If $guicount=0 Then Exit
EndFunc

:)

Broken link? PM me and I'll send you the file!

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...