Moin.
Ich würde gerne das im Input-1 folgende Werte zugelassen sind: -750 bis -250 UND 250 bis 750. Bei anderen Werten eine MsgBox(0,"Info","Wert nicht zulässig").
*) MsgBox ist nur ein Beispieltext. Kommt was sinnvolleres später rein.
C
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 121, 61, 192, 124)
$Input1 = GUICtrlCreateInput("500", 72, 8, 41, 28)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Label1 = GUICtrlCreateLabel("Input 1", 8, 8, 61, 32)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Alles anzeigen