Hallo Forum
Habe wieder mal ein Problem.
Ich möchte die Eingabe bestimmter Zeichen in einer Inputbox unterbinden.
Func _test() sollte die Eingabe Beistrich (,) nicht zulassen.
Leider klappt das nicht was ist daran falsch?
Danke für eure Tipp’s
C
include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Misc.au3>
#include <GuiEdit.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 270, 43, 380, 136)
$Input1 = GUICtrlCreateInput("", 16, 8, 245, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$hdll =""
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Input1
_test()
EndSwitch
WEnd
;-----------------------
Func _test()
Local $dll = DllOpen("user32.dll")
While 1
If _IsPressed("BC", $hDLL) Then
MsgBox(0,"Fehler","Befehle dürfen keinen '','' haben",3)
_GUICtrlEdit_SetText($Input1,"")
EndIf
Sleep(250)
WEnd
DllClose($hDLL)
EndFunc
Alles anzeigen