Jump to content

Dialog boxes - how do we create them in Autoit?


Recommended Posts

Where can I add a textbox? I saw it but it didn't show how you actually put one in.

Can I assign the value they (int) they enter? How would I do that.

#include <GUIConstantsEx.au3>

Opt('MustDeclareVars', 1)

bailsToBuy()

Func bailsToBuy()
    Local $gui, $bails, $msg, $ok, $bails
    $gui = GUICreate("Bails to Run", 400, 100)
    $bails = GUICtrlCreatePic(@SystemDir & "", 0, 0, 400, 100)
    GUISetState(@SW_SHOW)
    $ok = GUICtrlCreateButton("OK", 10, 30, 50)
    GUICtrlSetOnEvent(-1, "OKPressed")
; looking to have a text box so people can enter an int and have that int set to value $bails
; Then use value $bails in another file, or later in this one
; How do I do that?

    Do
        $msg = GUIGetMsg()
    Until $msg = $GUI_EVENT_CLOSE
EndFunc

Thanks for your help thus far =-)

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