Hi Leute,
habe ein kleines prob:
Code:
$Form1 = GUICreate("Form1", 268, 274, 397, 283)
$Button1 = GUICtrlCreateButton("Bestätigen", 32, 152, 193, 57, 0)
$Input1 = GUICtrlCreateInput("", 56, 72, 145, 21)
$Label1 = GUICtrlCreateLabel("How old are you ? ", 48, 24, 192, 28)
GUICtrlSetFont(-1, 14, 800, 2, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $Button1
Run (0)
GUICtrlRead( $Input1)
if $Input1 < 18 Then
MsgBox(0,"Fenster","Zuuuuu ALt")
ElseIf $Input1 > 18 Then
MsgBox(0,"Fenster","Zuuuu Jung")
ElseIf $Input1 = 18 Then
MsgBox(0,"Fenster","Genau richtig")
EndIf
Exit
EndSwitch
WEnd
So,jetzt will ich ,dass das Fenster mir bei <18 zu jung , >18 zu alt und bei =18 genau richtig anzeigt . Was hab ich falsch gemacht ? es kommt immer nur zu alt