Particle Posted June 13, 2008 Share Posted June 13, 2008 Is it possible to put GuiCreate in an array system so you can spawn multiple of the same window? I did figure out how to put controls in an array system just like ProcessWatch.au3. Link to comment Share on other sites More sharing options...
monoceres Posted June 13, 2008 Share Posted June 13, 2008 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 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