Jump to content
Sign in to follow this  
lilshortwun

Help making a window!

Recommended Posts

Oh one more thing. I've just tested it. How do you edit the window you've just made if you messed up?

Edit the code it produced for you?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Just edit the coordinates in the GUICtrlCreateButton function

From help file:

GUICtrlCreateButton ( "text", left, top [, width [, height [, style [, exStyle]]]] )

"left" and "top" are the number of pixels from the left or top where you want the button to be placed.

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

Please help me once more. No matter what I do, I can't seem to under how to do this. I got a button called button_24. How do I make it so when I click on it it pops up a window?

Share this post


Link to post
Share on other sites

$button_24 = GUICtrlCreateButton("Pop-up", 40, 10, 120)
GUICtrlSetOnEvent($button_24, "Pop") ; Tells to go to function "Pop()"

;Function
Func Pop()
    MsgBox(0, "Hello", "Hi!") ; Makes a dialog box pop-up
EndFunc


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

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  

×
×
  • Create New...