Sign in to follow this  
Followers 0
rvbfreak

2 GUIs

3 posts in this topic

#1 ·  Posted (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 by rvbfreak

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 :mellow:

Edited 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

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
Sign in to follow this  
Followers 0