Also wollte mal den Script in Koda reinklatschen :
PHP Code:
$input = InputBox ("Ja oder Nein?", "Hast du 'Grundlagen I-III' bereits gelesen?"&@CRLF&"(bitte antworte nur mit 'Ja' oder 'Nein'!")
If $input = "ja" Then
MsgBox (0, "Ja", "Dann lern ma weiter...")
ElseIf $input = "nein" Then
MsgBox (0, "Nein", "Solltest du das nicht besser nachholen?...")
Else
MsgBox (0, "", "Was verstehst du an 'Antworte nur mit Ja oder Nein' eigentlich nicht?!...")
EndIf
so schaut es aus .. nur da gibt es ein Problem , dort kommt immer das ich entweder ja oder nein einfügen soll obwohl ich ja,nein schreibe :
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Ja oder Nein", 267, 114, 192, 124)
GUISetIcon("C: ******************", -1)
$Label1 = GUICtrlCreateLabel("Haben sie gut gelernt, bitte nur mit JA oder Nein ", 16, 8, 235, 17)
$Label2 = GUICtrlCreateLabel("beantworten !", 16, 24, 69, 17)
$input = GUICtrlCreateInput("", 16, 48, 233, 21)
$Button1 = GUICtrlCreateButton("Ja oder Nein", 16, 72, 233, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
If $input = "ja" Then
MsgBox(0,"Ja","Das ist schön")
ElseIf $input = "nein" Then
MsgBox (0,"Nein","Das ist nicht Gut")
Else
MsgBox (0,"ERROR","Bitte nur mit Ja oder Nein beantworten")
EndIf
EndSwitch
WEnd