Hallo Leute Ich Hab ein Problem mit mein Script
also autoit nerft weil was mit den ElseIf nicht stimmt keine anung was
Hier Mein Script
ich wollte ein Programm schreiben wo mit man Das Periodensystem Lehrnen kann wahr bin Nur bist Erste Hauptgrube gekommen
Danke schon mal an alle die mir zu helfen versuchen
also autoit nerft weil was mit den ElseIf nicht stimmt keine anung was
Hier Mein Script
Script
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("P.S.Bot", 191, 112, 192, 124)
GUISetBkColor(0xC0C0C0)
$Input1 = GUICtrlCreateInput("", 32, 32, 121, 21)
$Button1 = GUICtrlCreateButton("Start", 56, 56, 75, 25, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("Deine Antwort ist :", 0, 0, 90, 17)
$Label2 = GUICtrlCreateLabel("????", 96, 0, 70, 28)
GUICtrlSetFont(-1, 18, 800, 0, "Sixties")
GUICtrlSetColor(-1, 0x0000FF)
$Button2 = GUICtrlCreateButton("Exit", 56, 80, 75, 25, $WS_GROUP)
$Label3 = GUICtrlCreateLabel("By T.M.B", 136, 88, 54, 20)
GUICtrlSetFont(-1, 10, 800, 4, "Myriad Pro")
GUICtrlSetColor(-1, 0x800000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Start1()
Case $Button2
Exit 0
EndSwitch
WEnd
;Notiz:mit Do Schleife ein limet der Fehler einbauen Notiz2:bessere Gui
#cs
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
#ce
Func _Start1()
If GUICtrlRead($Input1) = "Wasserstoff" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "Lithium" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
#
ElseIf GUICtrlRead($Input1) = "Natrium" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "Kalium" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "Rubidium" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "Caesium" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "Francium" Then
GUICtrlSetData ($Label2,"Richtig")
Sleep (2000)
MsgBox(0,"Erste HaubGrube Fertig","Erste HaubGrube fertig")
EndIf
#cs
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
#ce
Else
GUICtrlSetData ($Label2,"Falche")
EndIf
EndFunc
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("P.S.Bot", 191, 112, 192, 124)
GUISetBkColor(0xC0C0C0)
$Input1 = GUICtrlCreateInput("", 32, 32, 121, 21)
$Button1 = GUICtrlCreateButton("Start", 56, 56, 75, 25, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("Deine Antwort ist :", 0, 0, 90, 17)
$Label2 = GUICtrlCreateLabel("????", 96, 0, 70, 28)
GUICtrlSetFont(-1, 18, 800, 0, "Sixties")
GUICtrlSetColor(-1, 0x0000FF)
$Button2 = GUICtrlCreateButton("Exit", 56, 80, 75, 25, $WS_GROUP)
$Label3 = GUICtrlCreateLabel("By T.M.B", 136, 88, 54, 20)
GUICtrlSetFont(-1, 10, 800, 4, "Myriad Pro")
GUICtrlSetColor(-1, 0x800000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Start1()
Case $Button2
Exit 0
EndSwitch
WEnd
;Notiz:mit Do Schleife ein limet der Fehler einbauen Notiz2:bessere Gui
#cs
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
#ce
Func _Start1()
If GUICtrlRead($Input1) = "Wasserstoff" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "Lithium" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
#
ElseIf GUICtrlRead($Input1) = "Natrium" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "Kalium" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "Rubidium" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "Caesium" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "Francium" Then
GUICtrlSetData ($Label2,"Richtig")
Sleep (2000)
MsgBox(0,"Erste HaubGrube Fertig","Erste HaubGrube fertig")
EndIf
#cs
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
ElseIf GUICtrlRead($Input1) = "" Then
GUICtrlSetData ($Label2,"Richtig")
EndIf
#ce
Else
GUICtrlSetData ($Label2,"Falche")
EndIf
EndFunc
Danke schon mal an alle die mir zu helfen versuchen