Heres an example of a GUI (Custom message box) that i made for you.
just copy and paste the source into a new autoit file... seeing as how i can't upload .au3 files for some reason. Code:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.2.12.0
Author: Yazuak
Script Function:
GUI example
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include <GuiConstants.au3>
GuiCreate("A gui example", 285, 271)
= 100
;making all the features, buttons etc
= GuiCtrlCreateInput("Type something and press go", 20, 20, 150, 20)
= GuiCtrlCreateButton("Go", 180, 10, 80, 40)
= GuiCtrlCreateLabel("Current value is 100", 90, 240, 110, 20)
= GuiCtrlCreateButton("+", 90, 200, 30, 30)
= GuiCtrlCreateButton("-", 160, 200, 30, 30)
= GuiCtrlCreateInput("2", 120, 200, 40, 20)
= GuiCtrlCreateButton("Open notepad", 180, 70, 90, 30)
= GuiCtrlCreateCheckbox("Type stuff", 180, 110, 90, 30)
= GuiCtrlCreateInput("Hello, world!", 20, 70, 140, 20)
GuiSetState()
While 1
;each of these "cases" is autoit checking if something happened, ex. if you press a button
= GuiGetMsg()
Switch
Case
ExitLoop
Case
;this one is the "go" button
= GUICtrlRead()
MsgBox(0,"Typed","You inputted " & & ".")
case
;This is the "+" button
= GUICtrlRead()
= +
GUICtrlSetData(, "Current value is " & )
case
;this is the "-" button
= GUICtrlRead()
= -
GUICtrlSetData(, "Current value is " & )
case
;this is the "Open notepad" button
if GUICtrlRead() = 1 Then
= GUICtrlRead()
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send(,1)
Else
Run("notepad.exe")
EndIf
EndSwitch
WEnd
Exit