rvbfreak 0 Posted June 20, 2010 (edited) im trying to have my script create a first GUI, and when a button is pressed make another one. i used func button1() $win2=guictrlcreate("Window 2",100,100) endfunc but for some reason it wont work. what am i doing wrong? Edited June 20, 2010 by rvbfreak Share this post Link to post Share on other sites
Yoriz 6 Posted June 20, 2010 (edited) When windows are created they are initially hidden so you must use GUISetState() to display them. func button1() $win2=GUICreate("Window 2",100,100) GUISetState() endfunc Edit : Good point below i just copied that bit without taking notice Edited June 20, 2010 by Yoriz GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF. Share this post Link to post Share on other sites
Mat 376 Posted June 20, 2010 Where did you find the function 'guictrlcreate'? AutoIt Project Listing Share this post Link to post Share on other sites