Hi, I'm making a program wich needs to do something as long as a key is
pressed. I don't wan't to use the keyboard class, but just the keydown event
of a window. What I did was this: In the keydown event, I put ticks in a
dictionary under the key asc(key). Then I have a timer wich checks all
entry's in the dictionary if ticks-entry>3. If so, delete the entry from the
dictonary and call KeyUp (home-coocked method). Now this works perfectly,
except that between the first and the second keydown, there's a pause of
about 32 ticks. So in the keydown event, if the key isn't in the dictionary
yet, I add 32 ticks to it. Now It works, except that if you let the key go
within those 32 ticks, It doesn't fire a keyup event until those ticks are
over. I really do wan't to use the keydown event, and not the keyboard
class. Is there a way to eliminate that pause? If not, so be it...

Maarten
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to