Hallo, guten Tag.
Ich möchte laufend einen Tastendruck (Ascii) weitergeben ohne Input.
Input stört den fließenden Ablauf.
Wie kann man das machen ?
Danke.
GRuss
Code
$MAKE CLE
Declare a$, f&, ende&,text$,wert&
Proc GetComInput
Parameters id&
Declare x$
x$ = ReadCom$(id&,1)
If Len (x$)=1
wert&=Ord(x$)
If wert& <= 128
Print Hex$(wert&)
EndIf
EndIf
WriteCom(id&,a$)
EndProc
Window 0, 0 - 400,400
f& = OpenCom("COM4", 1024, 1024)
SetCom("COM4:9600,N,8,1")
ende& = 1
While ende&
GetComInput f&
Input a$ >>>>>>>>>>>>>>> ohne Input, wie geht das?
EndWhile
CloseCom(f%)
End
Alles anzeigen