#include #include #include #include $Car = "car" $Cat = "cat" $Cee = "cee" $Bar = "bar" $Bat = "bat" #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 364, 259, 192, 114) $Input1 = GUICtrlCreateInput("Input1", 16, 24, 121, 21) $Input2 = GUICtrlCreateInput("Input2", 16, 72, 121, 21) $Input3 = GUICtrlCreateInput("Input3", 16, 112, 121, 21) $Button1 = GUICtrlCreateButton("GO!", 24, 168, 97, 65) $Edit1 = GUICtrlCreateEdit("", 192, 24, 129, 217, BitOR($GUI_SS_DEFAULT_EDIT,$ES_CENTER)) GUICtrlSetData(-1, "Edit1") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Case $Button1 ; Check if $Input1 has a "c" or a "b" in it ; If $Input1 has a "c" and not a "b" it will check $Input2 and see if it has an "a" or an "e" in it. ; If $Input2 has an "a" and not an "e" in it, it will continue to $Inputbox3 and check if it has an "r" or a "t". ; If Input3 has an "r" and not a "t" it should find out which word listed above matches with the word spelled out in the inputboxes. GUICtrlSetData($Edit1,"Data") ;Data is the words listed above that match the input from the inputboxes. Exit EndSwitch WEnd