GUICtrlRead() would help!
; Press Esc to terminate script, Pause/Break to "pause"
;
; ----------------------------------------------------------------------------
; AutoIt Version: 3.3.6.1
; Author: BakedBeanss0802
; ----------------------------------------------------------------------------
#include <INet.au3>
#include <GuiButton.au3>
#include <GuiToolBar.au3>
#include <GuiConstantsEx.au3>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
GuiCreate("RandomTyper",314,299,585,333)
$button1=GuiCtrlCreateButton("About",254,6,40,18)
$button2=GuiCtrlCreateButton("Start Typing",65,232,183,50)
$input1=GuiCtrlCreateInput("hi",44,112,138,20)
$label1=GuiCtrlCreateLabel("typing",100,25,94,15)
$label2=GuiCtrlCreateLabel("How to Setup",56,52,260,15)
$label3=GuiCtrlCreateLabel("1. open notepad",7,73,180,15)
$label4=GuiCtrlCreateLabel("2. what do you want to type?",6,94,224,15)
GuiSetState()
While 1
$msg=GuiGetMsg()
If $msg=-3 Then Exit
If $msg=$button1 Then button1()
If $msg=$button2 Then button2()
Wend
Func button1()
MsgBox(32, "-About", "Program Created by BakedBeanss0802")
EndFunc
Func button2()
if GUICtrlRead($input1) = "hello" Then
MsgBox(32, "-About", "LOLOLOLOL")
Else
MsgBox(32, "-About", GUICtrlRead($input1))
endif
EndFunc