Hello all

I have a problem, when i use PeekConsoleInput to read key event in my program
it's fine under Win9X/ME, but 2000/XP always read double keys
anyone have experience about it ??

my program like below

..
..
invoke PeekConsoleInput, .....
cmp EventType,0 ;; any event exist ??
jz NoEvent ;; no, return
invoke FlushConsoleInputBuffer, .... ;; clear input buffer
cmp EventType,KEY_EVENT ;; is it key event ?
jne NoEvent ;; no , return
cmp bKeyDown, False ;; if release key ??
jz NoEvent ;; yes, not available event
.. ;; now it's some key pressed
..
..
..
NoEvent:
..
..
Posted on 2002-08-07 03:37:58 by jordanc